TrustLevelCollection.Item[] 属性

定义

获取 TrustLevel 对象中的指定的 TrustLevelCollection 项。

重载

Item[Int32]

获取或设置 TrustLevel 对象中指定索引处的 TrustLevelCollection 项。

Item[String]

获取位于指定索引位置的 TrustLevel 对象。

Item[Int32]

获取或设置 TrustLevel 对象中指定索引处的 TrustLevelCollection 项。

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

参数

index
Int32

TrustLevel 的数字索引。

属性值

TrustLevel

指定索引处的 TrustLevel

注解

TrustLevel如果对象存在于指定的索引处,则会删除该TrustLevel对象,并添加一个新对象。 如果索引中不存在 TrustLevel 对象,则会添加新对象。

适用于

Item[String]

获取位于指定索引位置的 TrustLevel 对象。

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

参数

key
String

TrustLevel 的索引。

属性值

TrustLevel

存在于 TrustLevel 的指定索引处的 TrustLevelCollection

注解

TrustLevel对象必须存在于对象的指定索引处TrustLevelCollection

适用于