다음을 통해 공유


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 전달 된 콘텐츠 유형에 관계 없이 합니다.

적용 대상