다음을 통해 공유


SyndicationItemFormatter.TryParseContent 메서드

정의

지정된 SyndicationItem 인스턴스를 사용하여 배포 항목 내용의 구문 분석을 시도합니다.

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

매개 변수

reader
XmlReader

읽을 소스 XmlReader입니다.

item
SyndicationItem

사용할 SyndicationItem 인스턴스입니다.

contentType
String

콘텐츠 유형입니다.

version
String

구문 분석 중 사용할 배포 버전입니다.

content
SyndicationContent

구문 분석할 내용입니다.

반환

Boolean

내용이 성공적으로 구문 분석되었는지 여부를 나타내는 값입니다.

설명

배포 콘텐츠가 구문 분석되는 방법을 제어하려면 메서드에서 SyndicationItem 고유한 클래스를 파생시키고 재정의 TryParseContent(XmlReader, String, String, SyndicationContent) 합니다.

적용 대상