DeploymentObjectAttributeCollection.Item[] 屬性

定義

從目前集合取得指定的 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 中找到的 實例。

例外狀況

ArgumentOutOfRangeException

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 之 的 實例。

例外狀況

ArgumentNullException

namenull Visual Basic) 中的參考 Nothing (

KeyNotFoundException

不存在 name 于集合中。

適用於