The Type property exposes configured attributes of the referenced Microsoft® SQL Server™ component.
object.Type [= value]
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
value | Long integer specifying a device type as described in Settings |
Constant | Value | Description |
---|---|---|
SQLDMODevice_CDROM | 7 | Reserved for future use |
SQLDMODevice_DiskDump | 2 | Device is a disk file |
SQLDMODevice_FloppyADump | 3 | Device is a disk file created on removable media in the A drive |
SQLDMODevice_FloppyBDump | 4 | Device is a disk file created on removable media in the B drive |
SQLDMODevice_PipeDump | 6 | Device identifies a named pipe |
SQLDMODevice_TapeDump | 5 | Device is a tape |
SQLDMODevice_Unknown | 100 | Bad or invalid device type |
Long, enumerated
Read/write when using the BackupDevice object to define a backup device. Read-only when the BackupDevice object references an existing backup device.
HRESULT GetType(SQLDMO_DEVICE_TYPE* pRetVal)
HRESULT SetType(SQLDMO_DEVICE_TYPE NewValue)