AdgFactory.NewDataArea Method
Estimated reading time: 2 minutes
Definition
Namespace: ASNA.DataGate.Client
Assembly: ASNA.QSys.DataGate.Client.dll
Creates a new instance of the interface with an unknown subtype.
Overloads
| Signature | Description |
|---|---|
| NewDataArea(IDataArea NewDataArea(AdgConnection cn, string PathName)) | Creates a new instance of the interface with an unknown subtype. |
| NewDataArea(IDataArea NewDataArea(AdgConnection cn, string PathName, AdgSubTypes DataAreaType)) | Creates a new instance of the interface with a specified subtype. |
IDataArea NewDataArea(AdgConnection cn, string PathName)
Creates a new instance of the interface with an unknown subtype.
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.The subtype of the data area is set to .
IDataArea NewDataArea(AdgConnection cn, string PathName)
Parameters
| Type | Parameter name | Description |
|---|---|---|
| AdgConnection | cn | The to use for the operation. |
| String | PathName | The path name of the data area. |
Returns
| Type | Description |
|---|---|
| IDataArea | A new instance of the interface. |
IDataArea NewDataArea(AdgConnection cn, string PathName, AdgSubTypes DataAreaType)
Creates a new instance of the interface with a specified subtype.
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.The subtype of the data area is set to the value of the parameter.
IDataArea NewDataArea(AdgConnection cn, string PathName, AdgSubTypes DataAreaType)
Parameters
| Type | Parameter name | Description |
|---|---|---|
| AdgConnection | cn | The to use for the operation. |
| String | PathName | The path name of the data area. |
| AdgSubTypes | DataAreaType | The subtype of the data area. |
Returns
| Type | Description |
|---|---|
| IDataArea | A new instance of the interface. |