共用方式為


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

備註

此執行個體是以下列預設值來建立的:

適用於