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)

적용 대상

추가 정보