ReportDeviceParameters Constructor (String, String, DeviceIdentityStatus, String)

 

Initializes a new instance of the ReportDeviceParameters class.

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

public ReportDeviceParameters(
	string deviceId,
	string deviceName,
	DeviceIdentityStatus status,
	string additionalIdInfo
)

Parameters

deviceId
Type: System.String

The identifier of a device.

deviceName
Type: System.String

The name of the device.

status
Type: Microsoft.WindowsServerSolutions.Common.Devices.DeviceIdentityStatus

The identity status of the device.

additionalIdInfo
Type: System.String

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

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);
Return to top
Show: