Share via


TrustLevelCollection.Set(Int32, TrustLevel) メソッド

定義

TrustLevel オブジェクトの指定したインデックス位置に、TrustLevelCollection オブジェクトを追加します。

public:
 void Set(int index, System::Web::Configuration::TrustLevel ^ trustLevel);
public void Set (int index, System.Web.Configuration.TrustLevel trustLevel);
member this.Set : int * System.Web.Configuration.TrustLevel -> unit
Public Sub Set (index As Integer, trustLevel As TrustLevel)

パラメーター

index
Int32

TrustLevel 内に設定する TrustLevelCollection のインデックス位置。

trustLevel
TrustLevel

TrustLevel 内に設定する TrustLevelCollection

次のコード例は、Set メソッドの使用方法を示します。 このコード例は、TrustLevelCollection クラスのために提供されている大規模な例の一部です。

// Set the TrustLevel object within the collection.
TrustLevelCollection1.Set(1, TrustLevel2);
' Set the TrustLevel object within the collection.
TrustLevelCollection1.Set(1, TrustLevel2)

適用対象

こちらもご覧ください