Share via


DeploymentSyncParameterCollection.Item[] Property

Definition

Gets the specified DeploymentSyncParameter from the current collection.

Overloads

Item[Int32]

Gets the DeploymentSyncParameter at the specified index.

Item[String]

Gets the DeploymentSyncParameter with the specified name.

Item[Int32]

Gets the DeploymentSyncParameter at the specified index.

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

Parameters

index
Int32

The zero-based index of the element to get.

Property Value

The element at the specified index.

Exceptions

ArgumentOutOfRangeException

index is not a valid index in the collection.

Applies to

Item[String]

Gets the DeploymentSyncParameter with the specified name.

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

Parameters

name
String

The name of the parameter to get.

Property Value

The value associated with the specified key. If the specified key is not found, a get operation throws a KeyNotFoundException.

Exceptions

ArgumentNullException

name is null reference (Nothing in Visual Basic)

KeyNotFoundException

The name does not exist in the collection.

Applies to