Bewerken

Delen via


DeclaredTypeElementCollection.Item[] Property

Definition

Gets or sets a specific member of the collection of types either by position or key.

Overloads

Item[Int32]

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets or sets the configuration element at the specified index location.

Item[String]

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets or sets the element in the collection of types by its key.

Item[Int32]

Gets or sets the configuration element at the specified index location.

This API supports the product infrastructure and is not intended to be used directly from your code.

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

Parameters

index
Int32

The index location of the configuration element to return.

Property Value

The DeclaredTypeElement at the specified index.

Applies to

Item[String]

Gets or sets the element in the collection of types by its key.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 property System::Runtime::Serialization::Configuration::DeclaredTypeElement ^ default[System::String ^] { System::Runtime::Serialization::Configuration::DeclaredTypeElement ^ get(System::String ^ typeName); void set(System::String ^ typeName, System::Runtime::Serialization::Configuration::DeclaredTypeElement ^ value); };
public System.Runtime.Serialization.Configuration.DeclaredTypeElement this[string typeName] { get; set; }
member this.Item(string) : System.Runtime.Serialization.Configuration.DeclaredTypeElement with get, set
Default Public Property Item(typeName As String) As DeclaredTypeElement

Parameters

typeName
String

The name (that functions as a key) of the type to get or set.

Property Value

The specified element (when used to get the element).

Applies to