|
MetadataHelpersGetParentDevice Method
|
Gets ID of parent device, creating or updating record if needed, for the current
IAdapter instance.
Namespace: GSF.TimeSeries.AdaptersAssembly: GSF.TimeSeries (in GSF.TimeSeries.dll) Version: 2.4.218-beta
Syntax public static int? GetParentDevice(
this IAdapter instance,
string parentDeviceAcronymTemplate = "{0}!RESULTS"
)
[<ExtensionAttribute>]
static member GetParentDevice :
instance : IAdapter *
?parentDeviceAcronymTemplate : string
(* Defaults:
let _parentDeviceAcronymTemplate = defaultArg parentDeviceAcronymTemplate "{0}!RESULTS"
*)
-> Nullable<int>
GSF.TimeSeries.Adapters.MetadataHelpers.GetParentDevice = function(instance, parentDeviceAcronymTemplate);
View SourceParameters
- instance IAdapter
- Target IAdapter instance.
- parentDeviceAcronymTemplate String (Optional)
- Parent device acronym template. Use '{0}' to reference Name.
Return Value
NullableInt32ID 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