SyndicationItemFormatter.TryParseAttribute Method (String, String, String, SyndicationPerson, String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.ServiceModel.Syndication
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

protected static bool TryParseAttribute(
	string name,
	string ns,
	string value,
	SyndicationPerson person,
	string version
)

Parameters

name
Type: System.String

The name of the element.

ns
Type: System.String

The namespace of the element.

value
Type: System.String

The attribute to parse.

person
Type: System.ServiceModel.Syndication.SyndicationPerson

The SyndicationPerson instance to use.

version
Type: System.String

The syndication version to use when parsing.

Return Value

Type: System.Boolean

A value that indicates whether the attribute was parsed successfully.

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

.NET Framework
Available since 3.5
Silverlight
Available since 2.0
Return to top
Show: