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

注解

已创建实例,其默认设置如下:

适用于