BncsFramework.AddManagedDeviceInstance Method

<< Click to Display Table of Contents >>

Navigation:  Reference > BNCS.Core.DriverFramework Namespace > BncsFramework Class > BncsFramework Methods >

BncsFramework.AddManagedDeviceInstance Method

Adds a managed device instance to the system, registers it, and optionally its parameters.

Namespace: BNCS.Core.DriverFramework
Assembly:  BNCS.Core.DriverFramework (in BNCS.Core.DriverFramework.dll)

 

Syntax


public static Guid AddManagedDeviceInstance(
 string instanceId,
 string parentId,
 string manufacturerTag,
 string productTag,
 string applicationTag,
 string instanceTag,
 bool autoRegister
)

Parameters

instanceId

Type: String
The unique identifier of the instance to be added.

parentId

Type: String
The identifier of the parent device, if any. Default is an empty string.

manufacturerTag

Type: String
An optional tag representing the manufacturer of the device.

productTag

Type: String
An optional tag representing the product type of the device.

applicationTag

Type: String
An optional tag representing the application associated with the device.

instanceTag

Type: String
An optional tag for the instance.

autoRegister

Type: Boolean
Indicates whether the parameters should be automatically registered. Default is true.

Return Value

The GUID of the newly added NMOS device.

 

Exceptions


Exception

Condition

[KeyNotFoundException]

Thrown when the instance with the specified instanceId is not found.

 

See Also


BncsFramework Class

BNCS.Core.DriverFramework Namespace