Export (0) Print
Expand All

AuditCollection.Item Property

 

Applies To: SQL Server 2016 Preview

Gets an Audit object in the collection by name or by index number.

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

NameDescription
System_CAPS_pubpropertyItem[Int32]

Gets an Audit object in the collection by index number.

System_CAPS_pubpropertyItem[String]

Gets an Audit object in the collection by name.

Return to top

AuditCollection.Item Property (Int32)

Gets an Audit object in the collection by index number.

public Audit this[
	int index
] { get; }

Parameters

index
Type: System.Int32

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

Property Value

Type: Microsoft.SqlServer.Management.Smo.Audit

An Audit object value that represents the audit.

Legacy Code Example

Return to top

AuditCollection.Item Property (String)

Gets an Audit object in the collection by name.

public Audit this[
	string name
] { get; }

Parameters

name
Type: System.String

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

Property Value

Type: Microsoft.SqlServer.Management.Smo.Audit

An Audit object value that represents the audit.

Legacy Code Example

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft