DatabaseAuditSpecificationCollection.Item Property (String)

Gets a DatabaseAuditSpecification object in the collection by name.

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

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    name As String _
) As DatabaseAuditSpecification
    Get
'Usage
Dim instance As DatabaseAuditSpecificationCollection
Dim name As String
Dim value As DatabaseAuditSpecification

value = instance(name)
public DatabaseAuditSpecification this[
    string name
] { get; }
public:
property DatabaseAuditSpecification^ default[String^ name] {
    DatabaseAuditSpecification^ get (String^ name);
}
member Item : DatabaseAuditSpecification
JScript supports the use of indexed properties, but not the declaration of new ones.

Parameters

Property Value

Type: Microsoft.SqlServer.Management.Smo.DatabaseAuditSpecification
A DatabaseAuditSpecification object value that represents the database audit specification.