RoleManagerEventArgs.Context 속성

정의

현재 요청에 대한 HttpContext를 가져옵니다.

public:
 property System::Web::HttpContext ^ Context { System::Web::HttpContext ^ get(); };
public System.Web.HttpContext Context { get; }
member this.Context : System.Web.HttpContext
Public ReadOnly Property Context As HttpContext

속성 값

현재 요청에 대한 HttpContext입니다.

예제

다음 예제는 GetRoles ASP.NET 애플리케이션의 Global.asax 파일에 포함 된 이벤트입니다. GetRoles 이벤트는 애플리케이션의 Web.config 파일에 추적을 설정 하는 위치에 대 한 추적 알림을 추가 합니다.

public void RoleManager_OnGetRoles(object sender, RoleManagerEventArgs args)
{
  args.Context.Trace.Write("Roles", "Applying Role Information");
}
Public Sub RoleManager_OnGetRoles(sender As Object, args As RoleManagerEventArgs)
  args.Context.Trace.Write("Roles", "Applying Role Information")
End Sub

설명

RoleManagerEventArgs 개체는 이벤트 정보를 제공 합니다 GetRoles 의 이벤트는 RoleManagerModule 클래스. 합니다 Context 속성에 대 한 액세스를 제공 합니다 HttpContext 현재 요청 합니다.

적용 대상

추가 정보