Export (0) Print
Expand All

BackupDeviceItem Class

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

Object
  Microsoft.SqlServer.Management.Smo::BackupDeviceItem

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

public ref class BackupDeviceItem : IComparable

The BackupDeviceItem type exposes the following members.

  NameDescription
Public methodBackupDeviceItem()Initializes a new instance of the BackupDeviceItem class.
Public methodBackupDeviceItem(String, DeviceType)Initializes a new instance of the [BackupDeviceItem] class that has the specified name and kind of device.
Public methodBackupDeviceItem(String, DeviceType, String)Initializes a new instance of the BackupDeviceItem class.
Top

  NameDescription
Public propertyCredentialNameGets or sets the credential of the backup object.
Public propertyDeviceTypeGets the kind of device for the BackupDeviceItem object.
Public propertyNameGets the name of device for the BackupDeviceItem object.
Top

  NameDescription
Public methodCompareToVerifies whether the specified object shares the same name as the referenced BackupDeviceItem object.
Public methodEqualsDetermines whether the current object is the same as the specified object. (Overrides ObjectEquals(Object).)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCodeGets the hash code for the object. (Overrides ObjectGetHashCode.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

  NameDescription
Public operatorStatic memberEqualityDetermines whether two objects are equal by performing an equality operation on two BackupDeviceItem objects.
Public operatorStatic memberGreaterThanDetermines whether one object is greater than another by performing an operation on two BackupDeviceItem objects.
Public operatorStatic memberInequalityDetermines whether two objects are unequal by performing an inequality operation on two BackupDeviceItem objects.
Public operatorStatic memberLessThanDetermines whether one object is less than another by performing an operation on two BackupDeviceItem objects.
Top

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.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft