|   | MetadataHelpersGetParentDevice Method | 
        
        
            Gets ID of parent device, creating or updating record if needed, for the current 
IAdapter instance.
            
 GSF.TimeSeries (in GSF.TimeSeries.dll) Version: 2.4.257-beta
 Syntax
Syntaxpublic static int? GetParentDevice(
	this IAdapter instance,
	string parentDeviceAcronymTemplate = "{0}!RESULTS"
)<ExtensionAttribute>
Public Shared Function GetParentDevice ( 
	instance As IAdapter,
	Optional parentDeviceAcronymTemplate As String = "{0}!RESULTS"
) As Integer?public:
[ExtensionAttribute]
static Nullable<int> GetParentDevice(
	IAdapter^ instance, 
	String^ parentDeviceAcronymTemplate = L"{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);
Parameters
- 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
See Also