Partager via


ReportDeviceParameters Constructor (String, String, DeviceIdentityStatus, String)

 

Initializes a new instance of the ReportDeviceParameters class.

Namespace:   Microsoft.WindowsServerSolutions.Common.Devices
Assembly:  DevicesOM (in DevicesOM.dll)

Syntax

public ReportDeviceParameters(
    string deviceId,
    string deviceName,
    DeviceIdentityStatus status,
    string additionalIdInfo
)
public:
ReportDeviceParameters(
    String^ deviceId,
    String^ deviceName,
    DeviceIdentityStatus status,
    String^ additionalIdInfo
)
Public Sub New (
    deviceId As String,
    deviceName As String,
    status As DeviceIdentityStatus,
    additionalIdInfo As String
)

Parameters

  • additionalIdInfo
    Type: System.String

    The additional identity information about a device. For a Windows client, the additional identity is the certificate serial number.

Examples

The following Visual C# code example shows how to report a device with specified parameters.

DevicesManager dm = new DevicesManager();
dm.Connect();

Guid deviceType = DeviceTypes.Client;
string deviceId = Guid.NewGuid().ToString();
string deviceName = "SDK Device";
DeviceIdentityStatus status = DeviceIdentityStatus.Active;
string additionalInfo = null;
ReportDeviceParameters reportParameters = 
   new ReportDeviceParameters(deviceId, deviceName, status, additionalInfo);

dm.ReportDevice(deviceType,reportParameters);

See Also

ReportDevice
ReportDevice
ReportDeviceAsync
ReportDeviceParameters Class
Microsoft.WindowsServerSolutions.Common.Devices Namespace

Return to top