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