AuditCollection.Item[String] AuditCollection.Item[String] AuditCollection.Item[String] Property

Definition

Overloads

Item[Int32] Item[Int32] Item[Int32]

Gets an Audit object in the collection by index number.

Item[String] Item[String] Item[String]

Gets an Audit object in the collection by name.

Item[Int32] Item[Int32] Item[Int32]

Gets an Audit object in the collection by index number.

public:
 property Microsoft::SqlServer::Management::Smo::Audit ^ default[int] { Microsoft::SqlServer::Management::Smo::Audit ^ get(int index); };
public Microsoft.SqlServer.Management.Smo.Audit this[int index] { get; }
Default Public ReadOnly Property Item(index As Integer) As Audit
Parameters
index
Int32 Int32 Int32

An Int32 value that specifies the position of the Audit object in the AuditCollection collection.

Property Value

An Audit object value that represents the audit.

Examples

Using Collections

Item[String] Item[String] Item[String]

Gets an Audit object in the collection by name.

public:
 property Microsoft::SqlServer::Management::Smo::Audit ^ default[System::String ^] { Microsoft::SqlServer::Management::Smo::Audit ^ get(System::String ^ name); };
public Microsoft.SqlServer.Management.Smo.Audit this[string name] { get; }
Default Public ReadOnly Property Item(name As String) As Audit
Parameters
name
String String String

A string value that specifies the name of the Audit object in the AuditCollection collection.

Property Value

An Audit object value that represents the audit.

Examples

Using Collections

Applies to