Partager via


Propriété Item (String)

Gets an Audit object in the collection by name.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public ReadOnly Default Property Item ( _
    name As String _
) As Audit
    Get
'Utilisation
Dim instance As AuditCollection
Dim name As String
Dim value As Audit

value = instance(name)
public Audit this[
    string name
] { get; }
public:
property Audit^ default[String^ name] {
    Audit^ get (String^ name);
}
member Item : Audit
JScript prend en charge l'utilisation de propriétés indexées, mais pas la déclaration de nouvelles propriétés.

Paramètres

Valeur de propriété

Type : Microsoft.SqlServer.Management.Smo. . :: . .Audit
An Audit object value that represents the audit.