AuthorizationRuleCollection.Set(Int32, AuthorizationRule) 메서드

정의

지정된 AuthorizationRule 개체를 컬렉션의 지정된 인덱스에 추가합니다.

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

매개 변수

index
Int32

지정된 AuthorizationRuleCollection 개체를 추가할 인덱스 위치입니다.

rule
AuthorizationRule

추가할 AuthorizationRule 개체입니다.

예제

다음 코드 예제에서는 Set 메서드를 사용하는 방법을 보여 줍니다.

// Using the AuthorizationRuleCollection Set method.

// Define the rule to add to the collection.

// Define the collection index.
System.Int32 rIndex = 0;

// Set the rule in the collection.
authorizationRuleCollection.Set(rIndex, 
    authorizationRule);
' Using the AuthorizationRuleCollection Set method.
' Define the rule to add to the collection.
' Define the collection index.
Dim rIndex As System.Int32 = 0

' Set the rule in the collection.
  authorizationRuleCollection.Set(rIndex, _
  authorizationRule)

적용 대상