DeploymentObjectAttributeCollection.TryGetValue 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
嘗試使用目前集合中指定的 尋找 DeploymentObjectAttributename ,並傳回值,指出作業是否成功。
public:
bool TryGetValue(System::String ^ name, [Runtime::InteropServices::Out] Microsoft::Web::Deployment::DeploymentObjectAttribute ^ % attribute);
public bool TryGetValue(string name, out Microsoft.Web.Deployment.DeploymentObjectAttribute attribute);
member this.TryGetValue : string * -> bool
Public Function TryGetValue (name As String, ByRef attribute As DeploymentObjectAttribute) As Boolean
參數
- name
- String
在目前集合中尋找的屬性名稱。
- attribute
- DeploymentObjectAttribute
如果找到傳回的屬性實例。
傳回
true 如果目前集合中找到具有指定名稱的屬性,則為 ,否則 false 為 。