BackupDeviceItem-Klasse

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

Vererbungshierarchie

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

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

Syntax

'Declaration
Public Class BackupDeviceItem _
    Implements IComparable
'Usage
Dim instance As BackupDeviceItem
public class BackupDeviceItem : IComparable
public ref class BackupDeviceItem : IComparable
type BackupDeviceItem =  
    class
        interface IComparable
    end
public class BackupDeviceItem implements IComparable

Der BackupDeviceItem-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode BackupDeviceItem() () () () Initializes a new instance of the BackupDeviceItem class.
Öffentliche Methode BackupDeviceItem(String, DeviceType) Initializes a new instance of the [BackupDeviceItem] class that has the specified name and kind of device.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft DeviceType Gets the kind of device for the BackupDeviceItem object.
Öffentliche Eigenschaft Name Gets the name of device for the BackupDeviceItem object.

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode CompareTo Verifies whether the specified object shares the same name as the referenced BackupDeviceItem object.
Öffentliche Methode Equals Determines whether the current object is the same as the specified object. (Überschreibt Object. . :: . .Equals(Object).)
Geschützte Methode Finalize (Geerbt von Object.)
Öffentliche Methode GetHashCode Gets the hash code for the object. (Überschreibt Object. . :: . .GetHashCode() () () ().)
Öffentliche Methode GetType (Geerbt von Object.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Öffentliche Methode ToString (Geerbt von Object.)

Zum Anfang

Operatoren

  Name Beschreibung
Öffentlicher OperatorStatisches Element Equality Determines whether two objects are equal by performing an equality operation on two BackupDeviceItem objects.
Öffentlicher OperatorStatisches Element GreaterThan Determines whether one object is greater than another by performing an operation on two BackupDeviceItem objects.
Öffentlicher OperatorStatisches Element Inequality Determines whether two objects are unequal by performing an inequality operation on two BackupDeviceItem objects.
Öffentlicher OperatorStatisches Element LessThan Determines whether one object is less than another by performing an operation on two BackupDeviceItem objects.

Zum Anfang

Hinweise

With the BackupDeviceItem object, you can do the following:

  • Access the backup device by name.

  • Verify whether two named backup devices are the same.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.