The NextDeviceNumber property is maintained for compatibility with previous versions of SQL-DMO.
object.NextDeviceNumber
object
Expression that evaluates to an object in the Applies To list
Long
Read-only
HRESULT GetNextDeviceNumber(LPLONG pRetVal);