Muokkaa

Jaa


TrustLevelCollection.Item[] Property

Definition

Gets the specified TrustLevel item within the TrustLevelCollection object.

Overloads

Item[Int32]

Gets or sets the TrustLevel item at the specified index within the TrustLevelCollection object.

Item[String]

Gets the TrustLevel object at the specified index.

Item[Int32]

Gets or sets the TrustLevel item at the specified index within the TrustLevelCollection object.

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

Parameters

index
Int32

The numeric index of the TrustLevel.

Property Value

A TrustLevel at the specified index.

Remarks

If a TrustLevel object exists at the specified index, the TrustLevel object is removed and a new one is added. If no TrustLevel object exists at the index, a new one is added.

Applies to

Item[String]

Gets the TrustLevel object at the specified index.

public:
 property System::Web::Configuration::TrustLevel ^ default[System::String ^] { System::Web::Configuration::TrustLevel ^ get(System::String ^ key); };
public System.Web.Configuration.TrustLevel this[string key] { get; }
member this.Item(string) : System.Web.Configuration.TrustLevel
Default Public ReadOnly Property Item(key As String) As TrustLevel

Parameters

key
String

The index of the TrustLevel.

Property Value

A TrustLevel that exists at the specified index of the TrustLevelCollection.

Remarks

A TrustLevel object must exist at the specified index within the TrustLevelCollection object.

Applies to