Share via


DeploymentObjectAttributeCollection.Item[] Property

Definition

Gets the specified DeploymentObjectAttribute from current collection.

Overloads

Item[Int32]

Gets the DeploymentObjectAttribute at the specified index from current collection.

Item[String]

Gets the DeploymentObjectAttribute with the specified name from current collection.

Item[Int32]

Gets the DeploymentObjectAttribute at the specified index from current collection.

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

Parameters

index
Int32

The zero-based index of the attribute to get from the current collection.

Property Value

A DeploymentObjectAttribute instance found at the specified index.

Exceptions

ArgumentOutOfRangeException

index is not a valid index in the collection.

Applies to

Item[String]

Gets the DeploymentObjectAttribute with the specified name from current collection.

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

Parameters

attributeName
String

The name of the attribute to get from the current collection.

Property Value

A DeploymentObjectAttribute instance with the specified name.

Exceptions

ArgumentNullException

name is null reference (Nothing in Visual Basic)

KeyNotFoundException

The name does not exist in the collection.

Applies to