Skip to main content

GetPIModuleFromPath(String, AFElement) Method

Gets the AFElement for a given path.

Definition​

Namespace: GHost.GSharp.PI.ACE
Assembly: GHost.GSharp.PI.ACE (in GHost.GSharp.PI.ACE.dll) Version: 1.2.44.3 (1.2.44.3)

C#

public static AFElement GetPIModuleFromPath(string path, AFElement rootElement)

VB

Public Shared Function GetPIModuleFromPath (path As String, rootElement As AFElement) As AFElement

Parameters​

  String
String indicating AFElement path. The format should be [ServerName]Element1\Element2\…\ElementN.
  AFElement
The root AFElement object

Return Value​

AFElement object corresponding to the specified path.

Remarks​

The specified path should contain a valid server name. Change to interface - returns AFElement object instead of PISDK.PIModule object.

Exceptions​

ArgumentException

See Also​

Reference​

PIACEBIFunctions Class
GetPIModuleFromPath Overload
GHost.GSharp.PI.ACE Namespace