BackupDeviceItem Class

 

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

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

System.Object
  Microsoft.SqlServer.Management.Smo.BackupDeviceItem

public class BackupDeviceItem : IComparable

NameDescription
System_CAPS_pubmethodBackupDeviceItem()

Initializes a new instance of the BackupDeviceItem class.

System_CAPS_pubmethodBackupDeviceItem(String, DeviceType)

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

System_CAPS_pubmethodBackupDeviceItem(String, DeviceType, String)

Initializes a new instance of the BackupDeviceItem class.

NameDescription
System_CAPS_pubpropertyCredentialName

Gets or sets the credential of the backup object.

System_CAPS_pubpropertyDeviceType

Gets the kind of device for the BackupDeviceItem object.

System_CAPS_pubpropertyName

Gets the name of device for the BackupDeviceItem object.

NameDescription
System_CAPS_pubmethodCompareTo(Object)

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

System_CAPS_pubmethodEquals(Object)

Determines whether the current object is the same as the specified object.(Overrides Object.Equals(Object).)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Gets the hash code for the object.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(BackupDeviceItem, BackupDeviceItem)

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

System_CAPS_puboperatorSystem_CAPS_staticGreaterThan(BackupDeviceItem, BackupDeviceItem)

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

System_CAPS_puboperatorSystem_CAPS_staticInequality(BackupDeviceItem, BackupDeviceItem)

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

System_CAPS_puboperatorSystem_CAPS_staticLessThan(BackupDeviceItem, BackupDeviceItem)

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

With the BackupDeviceItem object, you can do the following:

  • Access the backup device by name.

  • Verify whether two named backup devices are the same.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: