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
。