TrustLevelCollection.Item[] 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取对象中的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。
属性值
位于指定索引处的 A 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。
属性值
位于指定索引处的 TrustLevelATrustLevelCollection。
注解
TrustLevel对象必须存在于对象内的指定索引处TrustLevelCollection。