ServiceSecurityAuditBehavior.AuditLogLocation 속성

정의

보안 관련 이벤트 로그를 쓸 위치를 가져오거나 설정합니다.

public:
 property System::ServiceModel::AuditLogLocation AuditLogLocation { System::ServiceModel::AuditLogLocation get(); void set(System::ServiceModel::AuditLogLocation value); };
public System.ServiceModel.AuditLogLocation AuditLogLocation { get; set; }
member this.AuditLogLocation : System.ServiceModel.AuditLogLocation with get, set
Public Property AuditLogLocation As AuditLogLocation

속성 값

AuditLogLocation

AuditLogLocation 기본값은 Default입니다.

예외

setvalueAuditLogLocation의 유효한 멤버가 아닌 경우

예제

다음 코드에서는 ServiceSecurityAuditBehavior 클래스의 인스턴스를 만들고 이 속성을 설정합니다.

// Create a new auditing behavior and set the log location.
ServiceSecurityAuditBehavior newAudit =
    new ServiceSecurityAuditBehavior();
newAudit.AuditLogLocation =
    AuditLogLocation.Application;
' Create a new auditing behavior and set the log location.
Dim newAudit As New ServiceSecurityAuditBehavior()
newAudit.AuditLogLocation = AuditLogLocation.Application

설명

AuditLogLocation.Security에 쓸 수 있으려면 실행 중인 스레드 또는 프로세스에 SeAuditPrivilege가 있어야 합니다.

클라이언트 애플리케이션 구성 파일에서 <serviceSecurityAudit> 를 사용하여 이 값을 설정할 수도 있습니다.

적용 대상