Click or drag to resize

MetadataHelpersGetParentDevice Method

Gets ID of parent device, creating or updating record if needed, for the current IAdapter instance.

Namespace: GSF.TimeSeries.Adapters
Assembly: GSF.TimeSeries (in GSF.TimeSeries.dll) Version: 2.4.191-beta
Syntax
public static int? GetParentDevice(
	this IAdapter instance,
	string parentDeviceAcronymTemplate = "{0}!RESULTS"
)
View Source

Parameters

instance  IAdapter
Target IAdapter instance.
parentDeviceAcronymTemplate  String  (Optional)
Parent device acronym template. Use '{0}' to reference Name.

Return Value

NullableInt32
ID of parent device; or, null on failure.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAdapter. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also