BackupDeviceItem BackupDeviceItem BackupDeviceItem Class

Definition

The BackupDeviceItem object provides programmatic access to named SQL Server backup devices.

public ref class BackupDeviceItem : IComparable
public class BackupDeviceItem : IComparable
Public Class BackupDeviceItem
Implements IComparable
Inheritance
BackupDeviceItemBackupDeviceItemBackupDeviceItem
Implements

Examples

Backing Up and Restoring Databases and Transaction Logs

Remarks

With the BackupDeviceItem object, you can do the following:

  • Access the backup device by name.

  • Verify whether two named backup devices are the same.

-

Constructors

BackupDeviceItem() BackupDeviceItem() BackupDeviceItem()

Initializes a new instance of the BackupDeviceItem class.

BackupDeviceItem(String, DeviceType) BackupDeviceItem(String, DeviceType) BackupDeviceItem(String, DeviceType)

Initializes a new instance of the BackupDeviceItem class that has the specified name and kind of device.

BackupDeviceItem(String, DeviceType, String) BackupDeviceItem(String, DeviceType, String) BackupDeviceItem(String, DeviceType, String)

Initializes a new instance of the BackupDeviceItem class.

Properties

CredentialName CredentialName CredentialName

Gets or sets the credential of the backup object.

DeviceType DeviceType DeviceType

Gets the kind of device for the BackupDeviceItem object.

Name Name Name

Gets the name of device for the BackupDeviceItem object.

Methods

CompareTo(Object) CompareTo(Object) CompareTo(Object)

Verifies whether the specified object shares the same name as the referenced BackupDeviceItem object.

Equals(Object) Equals(Object) Equals(Object)

Determines whether the current object is the same as the specified object.

GetHashCode() GetHashCode() GetHashCode()

Gets the hash code for the object.

Operators

Equality(BackupDeviceItem, BackupDeviceItem) Equality(BackupDeviceItem, BackupDeviceItem) Equality(BackupDeviceItem, BackupDeviceItem)

Determines whether two objects are equal by performing an equality operation on two BackupDeviceItem objects.

GreaterThan(BackupDeviceItem, BackupDeviceItem) GreaterThan(BackupDeviceItem, BackupDeviceItem) GreaterThan(BackupDeviceItem, BackupDeviceItem)

Determines whether one object is greater than another by performing an operation on two BackupDeviceItem objects.

Inequality(BackupDeviceItem, BackupDeviceItem) Inequality(BackupDeviceItem, BackupDeviceItem) Inequality(BackupDeviceItem, BackupDeviceItem)

Determines whether two objects are unequal by performing an inequality operation on two BackupDeviceItem objects.

LessThan(BackupDeviceItem, BackupDeviceItem) LessThan(BackupDeviceItem, BackupDeviceItem) LessThan(BackupDeviceItem, BackupDeviceItem)

Determines whether one object is less than another by performing an operation on two BackupDeviceItem objects.

Applies to