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"))

적용 대상