DeploymentSyncParameterCollection.Item[] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從目前的集合取得指定的 DeploymentSyncParameter 。
多載
| Item[Int32] |
取得指定索引處的 DeploymentSyncParameter。 |
| Item[String] |
取得具有指定名稱的 DeploymentSyncParameter。 |
Item[Int32]
取得指定索引處的 DeploymentSyncParameter。
public:
property Microsoft::Web::Deployment::DeploymentSyncParameter ^ default[int] { Microsoft::Web::Deployment::DeploymentSyncParameter ^ get(int index); };
public Microsoft.Web.Deployment.DeploymentSyncParameter this[int index] { get; }
member this.Item(int) : Microsoft.Web.Deployment.DeploymentSyncParameter
Default Public ReadOnly Property Item(index As Integer) As DeploymentSyncParameter
參數
- index
- Int32
要取得之項目的以零為起始的索引。
屬性值
在指定索引上的項目。
例外狀況
ArgumentOutOfRangeException
index 不是集合中的有效索引。
適用於
Item[String]
取得具有指定名稱的 DeploymentSyncParameter。
public:
property Microsoft::Web::Deployment::DeploymentSyncParameter ^ default[System::String ^] { Microsoft::Web::Deployment::DeploymentSyncParameter ^ get(System::String ^ name); };
public Microsoft.Web.Deployment.DeploymentSyncParameter this[string name] { get; }
member this.Item(string) : Microsoft.Web.Deployment.DeploymentSyncParameter
Default Public ReadOnly Property Item(name As String) As DeploymentSyncParameter
參數
- name
- String
要取得的參數名稱。
屬性值
與指定之索引鍵關聯的值。 如果找不到指定的索引鍵,取得作業會擲回 KeyNotFoundException。
例外狀況
ArgumentNullException
name是 null Visual Basic) 中的參考 (Nothing
KeyNotFoundException
name不存在於集合中。