BackupDeviceItem Class
The BackupDeviceItem object provides programmatic access to named SQL Server backup devices.
Assembly: Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)
| Name | Description | |
|---|---|---|
![]() | BackupDeviceItem() | Initializes a new instance of the BackupDeviceItem class. |
![]() | BackupDeviceItem(String^, DeviceType) | Initializes a new instance of the BackupDeviceItem class that has the specified name and kind of device. |
![]() | BackupDeviceItem(String^, DeviceType, String^) | Initializes a new instance of the BackupDeviceItem class. |
| Name | Description | |
|---|---|---|
![]() | CredentialName | Gets or sets the credential of the backup object. |
![]() | DeviceType | Gets the kind of device for the BackupDeviceItem object. |
![]() | Name | Gets the name of device for the BackupDeviceItem object. |
| Name | Description | |
|---|---|---|
![]() | CompareTo(Object^) | Verifies whether the specified object shares the same name as the referenced BackupDeviceItem object. |
![]() | Equals(Object^) | Determines whether the current object is the same as the specified object.(Overrides Object::Equals(Object^).) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | Gets the hash code for the object.(Overrides Object::GetHashCode().) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | Equality(BackupDeviceItem^, BackupDeviceItem^) | Determines whether two objects are equal by performing an equality operation on two BackupDeviceItem objects. |
![]() ![]() | GreaterThan(BackupDeviceItem^, BackupDeviceItem^) | Determines whether one object is greater than another by performing an operation on two BackupDeviceItem objects. |
![]() ![]() | Inequality(BackupDeviceItem^, BackupDeviceItem^) | Determines whether two objects are unequal by performing an inequality operation on two BackupDeviceItem objects. |
![]() ![]() | LessThan(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.




