Editar

Compartilhar via


SyndicationFeedFormatter.TryParseAttribute Method

Definition

Attempts to parse an attribute extension.

Overloads

TryParseAttribute(String, String, String, SyndicationPerson, String)

Attempts to parse an attribute extension using the specified SyndicationPerson instance.

TryParseAttribute(String, String, String, SyndicationLink, String)

Attempts to parse an attribute extension using the specified SyndicationLink instance.

TryParseAttribute(String, String, String, SyndicationFeed, String)

Attempts to parse an attribute extension using the specified SyndicationFeed instance.

TryParseAttribute(String, String, String, SyndicationCategory, String)

Attempts to parse an attribute extension using the specified SyndicationCategory instance.

TryParseAttribute(String, String, String, SyndicationItem, String)

Attempts to parse an attribute extension using the specified SyndicationItem instance.

TryParseAttribute(String, String, String, SyndicationPerson, String)

Source:
SyndicationFeedFormatter.cs
Source:
SyndicationFeedFormatter.cs
Source:
SyndicationFeedFormatter.cs

Attempts to parse an attribute extension using the specified SyndicationPerson instance.

protected public:
 static bool TryParseAttribute(System::String ^ name, System::String ^ ns, System::String ^ value, System::ServiceModel::Syndication::SyndicationPerson ^ person, System::String ^ version);
protected internal static bool TryParseAttribute (string name, string ns, string value, System.ServiceModel.Syndication.SyndicationPerson person, string version);
static member TryParseAttribute : string * string * string * System.ServiceModel.Syndication.SyndicationPerson * string -> bool
Protected Friend Shared Function TryParseAttribute (name As String, ns As String, value As String, person As SyndicationPerson, version As String) As Boolean

Parameters

name
String

The name of the element.

ns
String

The namespace of the element.

value
String

The attribute to parse.

person
SyndicationPerson

The SyndicationPerson instance to use.

version
String

The syndication version to use when parsing.

Returns

true if the attribute was parsed successfully; otherwise false.

Remarks

To control how attribute extensions are parsed, derive your own class from SyndicationPerson and override the TryParseAttribute(String, String, String, String) method.

Applies to

Source:
SyndicationFeedFormatter.cs
Source:
SyndicationFeedFormatter.cs
Source:
SyndicationFeedFormatter.cs

Attempts to parse an attribute extension using the specified SyndicationLink instance.

protected public:
 static bool TryParseAttribute(System::String ^ name, System::String ^ ns, System::String ^ value, System::ServiceModel::Syndication::SyndicationLink ^ link, System::String ^ version);
protected internal static bool TryParseAttribute (string name, string ns, string value, System.ServiceModel.Syndication.SyndicationLink link, string version);
static member TryParseAttribute : string * string * string * System.ServiceModel.Syndication.SyndicationLink * string -> bool
Protected Friend Shared Function TryParseAttribute (name As String, ns As String, value As String, link As SyndicationLink, version As String) As Boolean

Parameters

name
String

The name of the element.

ns
String

The namespace of the element.

value
String

The attribute to parse.

link
SyndicationLink

The SyndicationLink instance to use.

version
String

The syndication version to use when parsing.

Returns

true if the attribute was parsed successfully; otherwise false.

Remarks

To control how attribute extensions are parsed, derive your own class from SyndicationLink and override the TryParseAttribute(String, String, String, String) method.

Applies to

TryParseAttribute(String, String, String, SyndicationFeed, String)

Source:
SyndicationFeedFormatter.cs
Source:
SyndicationFeedFormatter.cs
Source:
SyndicationFeedFormatter.cs

Attempts to parse an attribute extension using the specified SyndicationFeed instance.

protected public:
 static bool TryParseAttribute(System::String ^ name, System::String ^ ns, System::String ^ value, System::ServiceModel::Syndication::SyndicationFeed ^ feed, System::String ^ version);
protected internal static bool TryParseAttribute (string name, string ns, string value, System.ServiceModel.Syndication.SyndicationFeed feed, string version);
static member TryParseAttribute : string * string * string * System.ServiceModel.Syndication.SyndicationFeed * string -> bool
Protected Friend Shared Function TryParseAttribute (name As String, ns As String, value As String, feed As SyndicationFeed, version As String) As Boolean

Parameters

name
String

The name of the element.

ns
String

The namespace of the element.

value
String

The attribute to parse.

feed
SyndicationFeed

The SyndicationFeed instance to use.

version
String

The syndication version to use when parsing.

Returns

true if the attribute was parsed successfully; otherwise false.

Remarks

To control how attribute extensions are parsed, derive your own class from SyndicationFeed and override the TryParseAttribute(String, String, String, String) method.

Applies to

TryParseAttribute(String, String, String, SyndicationCategory, String)

Source:
SyndicationFeedFormatter.cs
Source:
SyndicationFeedFormatter.cs
Source:
SyndicationFeedFormatter.cs

Attempts to parse an attribute extension using the specified SyndicationCategory instance.

protected public:
 static bool TryParseAttribute(System::String ^ name, System::String ^ ns, System::String ^ value, System::ServiceModel::Syndication::SyndicationCategory ^ category, System::String ^ version);
protected internal static bool TryParseAttribute (string name, string ns, string value, System.ServiceModel.Syndication.SyndicationCategory category, string version);
static member TryParseAttribute : string * string * string * System.ServiceModel.Syndication.SyndicationCategory * string -> bool
Protected Friend Shared Function TryParseAttribute (name As String, ns As String, value As String, category As SyndicationCategory, version As String) As Boolean

Parameters

name
String

The name of the element.

ns
String

The namespace of the element.

value
String

The attribute to parse.

category
SyndicationCategory

The SyndicationCategory instance to use.

version
String

The syndication version to use when parsing.

Returns

true if the attribute was parsed successfully; otherwise false.

Remarks

To control how attribute extensions are parsed, derive your own class from SyndicationCategory and override the TryParseAttribute(String, String, String, String) method.

Applies to

TryParseAttribute(String, String, String, SyndicationItem, String)

Source:
SyndicationFeedFormatter.cs
Source:
SyndicationFeedFormatter.cs
Source:
SyndicationFeedFormatter.cs

Attempts to parse an attribute extension using the specified SyndicationItem instance.

protected public:
 static bool TryParseAttribute(System::String ^ name, System::String ^ ns, System::String ^ value, System::ServiceModel::Syndication::SyndicationItem ^ item, System::String ^ version);
protected internal static bool TryParseAttribute (string name, string ns, string value, System.ServiceModel.Syndication.SyndicationItem item, string version);
static member TryParseAttribute : string * string * string * System.ServiceModel.Syndication.SyndicationItem * string -> bool
Protected Friend Shared Function TryParseAttribute (name As String, ns As String, value As String, item As SyndicationItem, version As String) As Boolean

Parameters

name
String

The name of the element.

ns
String

The namespace of the element.

value
String

The attribute to parse.

item
SyndicationItem

The SyndicationItem instance to use.

version
String

The syndication version to use when parsing.

Returns

true if the attribute was parsed successfully; otherwise false.

Remarks

To control how attribute extensions are parsed, derive your own class from SyndicationItem and override the TryParseAttribute(String, String, String, String) method.

Applies to