DeploymentRuleCollection.TryGetValue(String, DeploymentRule) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得值,指出具有指定名稱的 是否存在 DeploymentRule 于目前集合中,並傳回指定 out 參數中的規則。
public:
bool TryGetValue(System::String ^ name, [Runtime::InteropServices::Out] Microsoft::Web::Deployment::DeploymentRule ^ % rule);
public bool TryGetValue(string name, out Microsoft.Web.Deployment.DeploymentRule rule);
member this.TryGetValue : string * -> bool
Public Function TryGetValue (name As String, ByRef rule As DeploymentRule) As Boolean
參數
- name
- String
在目前集合中搜尋的規則名稱。
- rule
- DeploymentRule
如果目前集合中有傳回的規則,則包含傳回的規則。
傳回
true
DeploymentRule如果在目前集合中找到 ,則為 ,否則 false 為 。
備註
當此作業完成時,如果存在規則參數,就會包含指定的 DeploymentRule 。