SyndicationItemFormatter.TryParseAttribute Method (String, String, String, SyndicationPerson, String)
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Attempts to parse an attribute extension using the specified SyndicationPerson instance.
Namespace: System.ServiceModel.Syndication
Assembly: System.ServiceModel.Syndication (in System.ServiceModel.Syndication.dll)
Syntax
'Declaration
Protected Shared Function TryParseAttribute ( _
name As String, _
ns As String, _
value As String, _
person As SyndicationPerson, _
version As String _
) As Boolean
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.
Remarks
To control how attribute extensions are parsed, derive your own class from SyndicationPerson and override the TryParseAttribute(String, String, String, String) method.
Version Information
Silverlight
Supported in: 5, 4, 3
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.