Share via


TrustLevelCollection.Add(TrustLevel) メソッド

定義

TrustLevel オブジェクトをコレクションに追加します。

public:
 void Add(System::Web::Configuration::TrustLevel ^ trustLevel);
public void Add (System.Web.Configuration.TrustLevel trustLevel);
member this.Add : System.Web.Configuration.TrustLevel -> unit
Public Sub Add (trustLevel As TrustLevel)

パラメーター

trustLevel
TrustLevel

コレクションに追加する TrustLevel

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

// Add a new TrustLevel to the collection.
TrustLevelCollection1.Add(new TrustLevel("Level1", "Level1.config"));
' Add a new TrustLevel to the collection.
TrustLevelCollection1.Add(New TrustLevel("Level1", "Level1.config"))

適用対象