|
<< 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)
public static Guid AddManagedDeviceInstance(
string instanceId,
string parentId,
string manufacturerTag,
string productTag,
string applicationTag,
string instanceTag,
bool autoRegister
)
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.
The GUID of the newly added NMOS device.
Condition |
|
|---|---|
[KeyNotFoundException] |
Thrown when the instance with the specified instanceId is not found. |
BNCS.Core.DriverFramework Namespace