ServiceDocumentFormatter.TryParseAttribute 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
嘗試解析屬性擴充。
多載
TryParseAttribute(String, String, String, Workspace, String)
嘗試解析屬性擴充。
protected:
static bool TryParseAttribute(System::String ^ name, System::String ^ ns, System::String ^ value, System::ServiceModel::Syndication::Workspace ^ workspace, System::String ^ version);
protected static bool TryParseAttribute(string name, string ns, string value, System.ServiceModel.Syndication.Workspace workspace, string version);
static member TryParseAttribute : string * string * string * System.ServiceModel.Syndication.Workspace * string -> bool
Protected Shared Function TryParseAttribute (name As String, ns As String, value As String, workspace As Workspace, version As String) As Boolean
參數
- name
- String
元素的名稱。
- ns
- String
元素的命名空間。
- value
- String
要解析的屬性。
- version
- String
解析時使用的聯播版本。
傳回
true如果屬性擴充成功解析;否則,。 false
適用於
TryParseAttribute(String, String, String, ServiceDocument, String)
嘗試解析屬性擴充。
protected:
static bool TryParseAttribute(System::String ^ name, System::String ^ ns, System::String ^ value, System::ServiceModel::Syndication::ServiceDocument ^ document, System::String ^ version);
protected static bool TryParseAttribute(string name, string ns, string value, System.ServiceModel.Syndication.ServiceDocument document, string version);
static member TryParseAttribute : string * string * string * System.ServiceModel.Syndication.ServiceDocument * string -> bool
Protected Shared Function TryParseAttribute (name As String, ns As String, value As String, document As ServiceDocument, version As String) As Boolean
參數
- name
- String
元素的名稱。
- ns
- String
元素的命名空間。
- value
- String
屬性擴充到解析。
- document
- ServiceDocument
用來 ServiceDocument 解析屬性擴充。
- version
- String
解析時使用的聯播版本。
傳回
true如果屬性擴充成功解析;否則,。 false
適用於
TryParseAttribute(String, String, String, CategoriesDocument, String)
嘗試解析屬性擴充。
protected:
static bool TryParseAttribute(System::String ^ name, System::String ^ ns, System::String ^ value, System::ServiceModel::Syndication::CategoriesDocument ^ categories, System::String ^ version);
protected static bool TryParseAttribute(string name, string ns, string value, System.ServiceModel.Syndication.CategoriesDocument categories, string version);
static member TryParseAttribute : string * string * string * System.ServiceModel.Syndication.CategoriesDocument * string -> bool
Protected Shared Function TryParseAttribute (name As String, ns As String, value As String, categories As CategoriesDocument, version As String) As Boolean
參數
- name
- String
元素的名稱。
- ns
- String
元素的命名空間。
- value
- String
要解析的屬性。
- categories
- CategoriesDocument
用來 CategoriesDocument 解析屬性擴充。
- version
- String
解析時使用的聯播版本。
傳回
true 如果屬性擴充成功解析。
適用於
TryParseAttribute(String, String, String, ResourceCollectionInfo, String)
嘗試解析屬性擴充。
protected:
static bool TryParseAttribute(System::String ^ name, System::String ^ ns, System::String ^ value, System::ServiceModel::Syndication::ResourceCollectionInfo ^ collection, System::String ^ version);
protected static bool TryParseAttribute(string name, string ns, string value, System.ServiceModel.Syndication.ResourceCollectionInfo collection, string version);
static member TryParseAttribute : string * string * string * System.ServiceModel.Syndication.ResourceCollectionInfo * string -> bool
Protected Shared Function TryParseAttribute (name As String, ns As String, value As String, collection As ResourceCollectionInfo, version As String) As Boolean
參數
- name
- String
元素的名稱。
- ns
- String
元素的命名空間。
- value
- String
要解析的屬性。
- collection
- ResourceCollectionInfo
用來 ResourceCollectionInfo 解析屬性。
- version
- String
解析時使用的聯播版本。
傳回
true如果屬性擴充成功解析;否則,。 false