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)

적용 대상

추가 정보