Share via


AuditSpecificationDetail 結構

The AuditSpecificationDetail object represents a SQL Server audit specification detail required when creating an audit.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Structure AuditSpecificationDetail
'用途
Dim instance As AuditSpecificationDetail
public struct AuditSpecificationDetail
public value class AuditSpecificationDetail
[<SealedAttribute>]
type AuditSpecificationDetail =  struct end
JScript 支援結構的使用,但不支援結構的宣告。

AuditSpecificationDetail 型別公開下列成員。

建構函式

  名稱 說明
公用方法 AuditSpecificationDetail(AuditActionType) Initializes a new instance of the AuditSpecificationDetail class with the specified action.
公用方法 AuditSpecificationDetail(AuditActionType, String, String) Initializes a new instance of the AuditSpecificationDetail class for the specified action, object and principal.
公用方法 AuditSpecificationDetail(AuditActionType, String, String, String) Initializes a new instance of the AuditSpecificationDetail class for the specified action, object, schema and principal.
公用方法 AuditSpecificationDetail(AuditActionType, String, String, String, String) Initializes a new instance of the AuditSpecificationDetail class for the specified action, class, schema, name, and principal.

上層

屬性

  名稱 說明
公用屬性 Action Gets the type of action to be monitored during the audit.
公用屬性 ObjectClass Gets the class of the object to be audited.
公用屬性 ObjectName Gets the name of the object to be monitored during the audit.
公用屬性 ObjectSchema Gets the schema of the object to be monitored during the audit.
公用屬性 Principal Gets the name of the principal to be monitored during the audit.

上層

方法

  名稱 說明
公用方法 Equals (繼承自 ValueType。)
受保護的方法 Finalize (繼承自 Object。)
公用方法 GetHashCode (繼承自 ValueType。)
公用方法 GetType (繼承自 Object。)
受保護的方法 MemberwiseClone (繼承自 Object。)
公用方法 ToString (繼承自 ValueType。)

上層

備註

The AuditSpecificationDetail object is used to specify the actions, objects, principals to be monitored during the audit.

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。