BackupDeviceCollection.Item[String] BackupDeviceCollection.Item[String] BackupDeviceCollection.Item[String] Property

Definition

Overloads

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

Gets a BackupDevice object in the collection by index number.

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

Gets a BackupDevice object in the collection by name.

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

Gets a BackupDevice object in the collection by index number.

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

An Int32 value that specifies the position of the BackupDevice object in the BackupDeviceCollection collection.

Property Value

A BackupDevice object value that represents the backup device.

Examples

Using Collections

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

Gets a BackupDevice object in the collection by name.

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

A String value that specifies the name of the BackupDevice object in the BackupDeviceCollection collection.

Property Value

A BackupDevice object value that represents the backup device.

Examples

Using Collections

Applies to