Click or drag to resize

DetachedDeviceLinkGetEffectiveParentID Method

Gets the effective parent device database ID for a device, i.e., the defined database parentID field value, when not null, falling back on any numeric ParentIDKey value defined in the device connectionString.

Namespace: GSF.PhasorProtocols
Assembly: GSF.PhasorProtocols (in GSF.PhasorProtocols.dll) Version: 2.4.318-beta
Syntax
public static int? GetEffectiveParentID(
	int? parentID,
	string connectionString
)
View Source

Parameters

parentID  NullableInt32
Database ParentID field value for the device.
connectionString  String
Connection string for the device.

Return Value

NullableInt32
Effective parent device database ID; otherwise, null when device has no parent.
See Also