WebContentTypeMapper.GetMessageFormatForContentType(String) 메서드

정의

파생 클래스에서 재정의되는 경우 지정된 콘텐츠 형식에 사용되는 메시지 형식을 반환합니다.

public:
 abstract System::ServiceModel::Channels::WebContentFormat GetMessageFormatForContentType(System::String ^ contentType);
public abstract System.ServiceModel.Channels.WebContentFormat GetMessageFormatForContentType(string contentType);
abstract member GetMessageFormatForContentType : string -> System.ServiceModel.Channels.WebContentFormat
Public MustOverride Function GetMessageFormatForContentType (contentType As String) As WebContentFormat

매개 변수

contentType
String

해석할 데이터의 MIME 형식을 나타내는 콘텐츠 형식입니다.

반품

WebContentFormat 메시지 콘텐츠 형식이 매핑되는 형식을 지정하는 값입니다.

설명

콘텐츠 형식이 웹 콘텐츠 형식에 매핑되는 방식을 재정의하는 데 사용할 수 있는 확장성 메커니즘입니다. 예를 들어 들어오는 모든 메시지가 XML 또는 JSON 구문 분석을 수행하지 않고 "원시 이진 데이터"로 처리되는 경우 전달된 콘텐츠 형식에 관계없이 항상 반환 WebContentTypeMapper 되는 메시지를 구현 Raw 할 수 있습니다.

적용 대상