AdgFactory.NewObject Method

Definition

Namespace: ASNA.DataGate.Client
Assembly: ASNA.QSys.DataGate.Client.dll

Creates a new instance of the interface.

IAdgObject NewObject(AdgConnection cn, AdgObjectTypes type, string path)

Creates a new instance of the interface.

Remarks

This method uses the method to create a new instance of the interface.The method is a generic method that takes a function delegate as a parameter.The function delegate is responsible for creating the new instance.If the parameter is null, an is thrown.

IAdgObject NewObject(AdgConnection cn, AdgObjectTypes type, string path)

Parameters

Type Parameter name Description
AdgConnection cn The to use for the operation.
AdgObjectTypes type The type of the object to create.
String path The path of the object to create.

Returns

Type Description
IAdgObject A new instance of the interface.

See Also