SyndicationItem.TryParseContent 메서드

정의

콘텐츠를 구문 분석하려고 시도합니다.

protected public:
 virtual bool TryParseContent(System::Xml::XmlReader ^ reader, System::String ^ contentType, System::String ^ version, [Runtime::InteropServices::Out] System::ServiceModel::Syndication::SyndicationContent ^ % content);
protected internal virtual bool TryParseContent(System.Xml.XmlReader reader, string contentType, string version, out System.ServiceModel.Syndication.SyndicationContent content);
abstract member TryParseContent : System.Xml.XmlReader * string * string * SyndicationContent -> bool
override this.TryParseContent : System.Xml.XmlReader * string * string * SyndicationContent -> bool
Protected Friend Overridable Function TryParseContent (reader As XmlReader, contentType As String, version As String, ByRef content As SyndicationContent) As Boolean

매개 변수

reader
XmlReader

XmlReader 읽을 항목입니다.

contentType
String

콘텐츠의 콘텐츠 형식입니다.

version
String

구문 분석하는 동안 사용할 배포 버전입니다.

content
SyndicationContent

SyndicationContent 구문 분석된 콘텐츠를 로드할 인스턴스입니다.

반품

콘텐츠가 성공적으로 구문 분석되었는지 여부를 지정하는 값입니다.

설명

이 메서드는 사용자 지정 콘텐츠의 역직렬화를 처리할 수 있는 확장 지점입니다. 이렇게 하려면 클래스 SyndicationItem 를 파생시키고 이 메서드를 재정의해야 합니다. 이 메서드는 인식할 수 없는 모든 콘텐츠에 대해 호출됩니다.

적용 대상