SyndicationItemFormatter.TryParseAttribute 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
试图分析属性扩展。
重载
TryParseAttribute(String, String, String, SyndicationPerson, String)
试图使用指定的 SyndicationPerson 实例分析属性扩展。
protected:
static bool TryParseAttribute(System::String ^ name, System::String ^ ns, System::String ^ value, System::ServiceModel::Syndication::SyndicationPerson ^ person, System::String ^ version);
protected public:
static bool TryParseAttribute(System::String ^ name, System::String ^ ns, System::String ^ value, System::ServiceModel::Syndication::SyndicationPerson ^ person, System::String ^ version);
protected static bool TryParseAttribute (string name, string ns, string value, System.ServiceModel.Syndication.SyndicationPerson person, 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 Shared Function TryParseAttribute (name As String, ns As String, value As String, person As SyndicationPerson, version As String) As Boolean
Protected Friend Shared Function TryParseAttribute (name As String, ns As String, value As String, person As SyndicationPerson, version As String) As Boolean
参数
- name
- String
元素的名称。
- ns
- String
元素的命名空间。
- value
- String
要分析的属性。
- person
- SyndicationPerson
要使用的 SyndicationPerson 实例。
- version
- String
要在分析时使用的联合版本。
返回
一个指示是否已成功分析该属性的值。
注解
若要控制分析特性扩展的方式,可以从 SyndicationPerson 中派生您自己的类,并重写 TryParseAttribute(String, String, String, String) 方法。
适用于
TryParseAttribute(String, String, String, SyndicationLink, String)
试图使用指定的 SyndicationLink 实例分析属性扩展。
protected:
static bool TryParseAttribute(System::String ^ name, System::String ^ ns, System::String ^ value, System::ServiceModel::Syndication::SyndicationLink ^ link, System::String ^ version);
protected public:
static bool TryParseAttribute(System::String ^ name, System::String ^ ns, System::String ^ value, System::ServiceModel::Syndication::SyndicationLink ^ link, System::String ^ version);
protected static bool TryParseAttribute (string name, string ns, string value, System.ServiceModel.Syndication.SyndicationLink link, 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 Shared Function TryParseAttribute (name As String, ns As String, value As String, link As SyndicationLink, version As String) As Boolean
Protected Friend Shared Function TryParseAttribute (name As String, ns As String, value As String, link As SyndicationLink, version As String) As Boolean
参数
- name
- String
元素的名称。
- ns
- String
元素的命名空间。
- value
- String
要分析的属性。
- link
- SyndicationLink
要使用的 SyndicationLink 实例。
- version
- String
要在分析时使用的联合版本。
返回
一个指示是否已成功分析该属性的值。
注解
若要控制分析特性扩展的方式,可以从 SyndicationLink 中派生您自己的类,并重写 TryParseAttribute(String, String, String, String) 方法。
适用于
TryParseAttribute(String, String, String, SyndicationItem, String)
试图使用指定的 SyndicationItem 实例分析属性扩展。
protected:
static bool TryParseAttribute(System::String ^ name, System::String ^ ns, System::String ^ value, System::ServiceModel::Syndication::SyndicationItem ^ item, System::String ^ version);
protected public:
static bool TryParseAttribute(System::String ^ name, System::String ^ ns, System::String ^ value, System::ServiceModel::Syndication::SyndicationItem ^ item, System::String ^ version);
protected static bool TryParseAttribute (string name, string ns, string value, System.ServiceModel.Syndication.SyndicationItem item, 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 Shared Function TryParseAttribute (name As String, ns As String, value As String, item As SyndicationItem, version As String) As Boolean
Protected Friend Shared Function TryParseAttribute (name As String, ns As String, value As String, item As SyndicationItem, version As String) As Boolean
参数
- name
- String
元素的名称。
- ns
- String
元素的命名空间。
- value
- String
要分析的属性。
- item
- SyndicationItem
要使用的 SyndicationItem 实例。
- version
- String
要在分析时使用的联合版本。
返回
一个指示是否已成功分析该属性的值。
注解
若要控制分析特性扩展的方式,可以从 SyndicationItem 中派生您自己的类,并重写 TryParseAttribute(String, String, String, String) 方法。
适用于
TryParseAttribute(String, String, String, SyndicationCategory, String)
试图使用指定的 SyndicationCategory 实例分析属性扩展。
protected:
static bool TryParseAttribute(System::String ^ name, System::String ^ ns, System::String ^ value, System::ServiceModel::Syndication::SyndicationCategory ^ category, System::String ^ version);
protected public:
static bool TryParseAttribute(System::String ^ name, System::String ^ ns, System::String ^ value, System::ServiceModel::Syndication::SyndicationCategory ^ category, System::String ^ version);
protected static bool TryParseAttribute (string name, string ns, string value, System.ServiceModel.Syndication.SyndicationCategory category, 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 Shared Function TryParseAttribute (name As String, ns As String, value As String, category As SyndicationCategory, version As String) As Boolean
Protected Friend Shared Function TryParseAttribute (name As String, ns As String, value As String, category As SyndicationCategory, version As String) As Boolean
参数
- name
- String
元素的名称。
- ns
- String
元素的命名空间。
- value
- String
要分析的属性。
- category
- SyndicationCategory
要使用的 SyndicationCategory 实例。
- version
- String
要在分析时使用的联合版本。
返回
一个指示是否已成功分析该属性的值。
注解
若要控制分析特性扩展的方式,可以从 SyndicationCategory 中派生您自己的类,并重写 TryParseAttribute(String, String, String, String) 方法。