通过


ServiceSecurityAuditBehavior 构造函数

定义

初始化 ServiceSecurityAuditBehavior 类的新实例。

public:
 ServiceSecurityAuditBehavior();
public ServiceSecurityAuditBehavior();
Public Sub New ()

示例

以下代码创建类的 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

注解

该实例是使用以下默认设置创建的:

适用于