AuthorizationRuleCollection.IndexOf(AuthorizationRule) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 AuthorizationRule 개체의 컬렉션 인덱스입니다.
public:
int IndexOf(System::Web::Configuration::AuthorizationRule ^ rule);
public int IndexOf(System.Web.Configuration.AuthorizationRule rule);
member this.IndexOf : System.Web.Configuration.AuthorizationRule -> int
Public Function IndexOf (rule As AuthorizationRule) As Integer
매개 변수
- rule
- AuthorizationRule
인 AuthorizationRule 덱스가 반환되는 개체입니다.
반품
지정된 AuthorizationRule 개체의 인덱스입니다.
예제
다음 코드 예제에서는 메서드를 사용 하는 방법을 보여 있습니다 IndexOf .
// Get the rule collection index.
System.Int32 ruleIndex =
authorizationSection.Rules.IndexOf(authorizationRule);
' Get the rule collection index.
Dim ruleIndex As System.Int32 = _
authorizationSection.Rules.IndexOf(authorizationRule)