DeploymentObjectAttributeCollection.TryGetValue 方法

定義

嘗試使用目前集合中指定的 尋找 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 為 。

適用於