ProtocolElementCollection.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 ProtocolElement that has the specified key in the collection.

Item[Int32]

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

C#
public System.Web.Services.Configuration.ProtocolElement this[int index] { get; set; }

Parameters

index
Int32

The zero-based index into the collection.

Property Value

The ProtocolElement that exists at the specified index.

Applies to

.NET Framework 4.8.1 e outras versões
Produto Versões
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Item[Object]

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

C#
public System.Web.Services.Configuration.ProtocolElement this[object key] { get; set; }

Parameters

key
Object

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

Property Value

The ProtocolElement with the specified key.

Exceptions

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

Applies to

.NET Framework 4.8.1 e outras versões
Produto Versões
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1