Delen via


AuditSpecificationDetail Structure

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

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Structure AuditSpecificationDetail
'Usage
Dim instance As AuditSpecificationDetail
public struct AuditSpecificationDetail
public value class AuditSpecificationDetail
[<SealedAttribute>]
type AuditSpecificationDetail =  struct end
JScript suports the use of structures, but not the declaration of new ones.

The AuditSpecificationDetail type exposes the following members.

Constructors

  Name Description
Public method AuditSpecificationDetail(AuditActionType) Initializes a new instance of the AuditSpecificationDetail class with the specified action.
Public method AuditSpecificationDetail(AuditActionType, String, String) Initializes a new instance of the AuditSpecificationDetail class for the specified action, object and principal.
Public method AuditSpecificationDetail(AuditActionType, String, String, String) Initializes a new instance of the AuditSpecificationDetail class for the specified action, object, schema and principal.
Public method AuditSpecificationDetail(AuditActionType, String, String, String, String) Initializes a new instance of the AuditSpecificationDetail class for the specified action, class, schema, name, and principal.

Top

Properties

  Name Description
Public property Action Gets the type of action to be monitored during the audit.
Public property ObjectClass Gets the class of the object to be audited.
Public property ObjectName Gets the name of the object to be monitored during the audit.
Public property ObjectSchema Gets the schema of the object to be monitored during the audit.
Public property Principal Gets the name of the principal to be monitored during the audit.

Top

Methods

  Name Description
Public method Equals (Inherited from ValueType.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from ValueType.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from ValueType.)

Top

Remarks

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

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.