共用方式為


Database.DatabaseAuditSpecifications 屬性

Gets a collection of DatabaseAuditSpecification objects. Each DatabaseAuditSpecification object represents a database audit specification defined on the server.

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

語法

'宣告
<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(DatabaseAuditSpecification))> _
Public ReadOnly Property DatabaseAuditSpecifications As DatabaseAuditSpecificationCollection 
    Get
'用途
Dim instance As Database 
Dim value As DatabaseAuditSpecificationCollection 

value = instance.DatabaseAuditSpecifications
[SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(DatabaseAuditSpecification))]
public DatabaseAuditSpecificationCollection DatabaseAuditSpecifications { get; }
[SfcObjectAttribute(SfcContainerRelationship::ObjectContainer, SfcContainerCardinality::ZeroToAny, 
    typeof(DatabaseAuditSpecification))]
public:
property DatabaseAuditSpecificationCollection^ DatabaseAuditSpecifications {
    DatabaseAuditSpecificationCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(DatabaseAuditSpecification))>]
member DatabaseAuditSpecifications : DatabaseAuditSpecificationCollection
function get DatabaseAuditSpecifications () : DatabaseAuditSpecificationCollection

屬性值

型別:Microsoft.SqlServer.Management.Smo.DatabaseAuditSpecificationCollection
A DatabaseAuditSpecificationCollection object that represents all the database audit specifications defined on the server.

備註

Specific database audit specifications can be referenced by using this collection by specifying the name of the database audit specification. To add a new database audit specification to the collection, call the database audit specification constructor DatabaseAuditSpecification.

請參閱

參考

Database 類別

Microsoft.SqlServer.Management.Smo 命名空間