Upraviť

Zdieľať cez


TypeElementCollection.Item[] Property

Definition

Gets or sets an element in the collection.

Overloads

Item[Int32]

Gets or sets the element at a specified index in the collection.

Item[Object]

Gets or sets the TypeElement that has the specified key in the collection.

Item[Int32]

Gets or sets the element at a specified index in the collection.

public:
 property System::Web::Services::Configuration::TypeElement ^ default[int] { System::Web::Services::Configuration::TypeElement ^ get(int index); void set(int index, System::Web::Services::Configuration::TypeElement ^ value); };
public System.Web.Services.Configuration.TypeElement this[int index] { get; set; }
member this.Item(int) : System.Web.Services.Configuration.TypeElement with get, set
Default Public Property Item(index As Integer) As TypeElement

Parameters

index
Int32

The zero-based index into the collection.

Property Value

The TypeElement that exists at the specified index.

Applies to

Item[Object]

Gets or sets the TypeElement that has the specified key in the collection.

public:
 property System::Web::Services::Configuration::TypeElement ^ default[System::Object ^] { System::Web::Services::Configuration::TypeElement ^ get(System::Object ^ key); void set(System::Object ^ key, System::Web::Services::Configuration::TypeElement ^ value); };
public System.Web.Services.Configuration.TypeElement this[object key] { get; set; }
member this.Item(obj) : System.Web.Services.Configuration.TypeElement with get, set
Default Public Property Item(key As Object) As TypeElement

Parameters

key
Object

The key of the TypeElement to get or set in the collection.

Property Value

The TypeElement with the specified key.

Exceptions

The TypeElement with the specified key was not found in the collection.

Applies to