WorkstationDataSet class | QSYS API Reference Guide
Estimated reading time: 2 minutes
Represents the dataset of a workstation file.
Namespace: ASNA.QSys.Runtime Assembly: ASNA.QSys.Runtime.dll
Inheritance: Object –> MarshalByValueComponent –> DataSet –> AdgDataSet
Constructors
Name | Description |
---|---|
WorkstationDataSet(String, String) | Initializes a new instance of the WorkstationDataSet class. |
WorkstationDataSet(String, String)
Initializes a new instance of the WorkstationDataSet class.
WorkstationDataSet(String, String)
Parameters
Type | Parameter name | Description |
---|---|---|
String | FileName | Name of the workstation file field in the program. |
String | formatProps | String containing the serialized XML for the record format section of the Wrf file. |
Methods
Signature | Description |
---|---|
GetObjectData(SerializationInfo, StreamingContext) | Populates a serialization information object with the data needed to serializethe System.Data.DataSet. |
GetStatus(DataSet) | Gets the WsDs Status value from the property flags in the DataSet. |
Initialize() | Initialize the WorkstationDataSet object. This method skips the ‘normal’ initializing path and does nothing.The true initialization of the WorkstationDataSet happens when calling InitializeFormats. |
InitializeFormats() | Initialize the WorkstationDataSet object. |
SetStatusFlag(DataSet, WsDsStatus, Boolean) | Set the status flag of the dataset to None or Read. |
void GetObjectData(SerializationInfo info, StreamingContext context)
Populates a serialization information object with the data needed to serializethe System.Data.DataSet.
void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Parameter name | Description |
---|---|---|
SerializationInfo | info | A System.Runtime.Serialization.SerializationInfo that holds the serialized data associated with the System.Data.DataSet. |
StreamingContext | context | A System.Runtime.Serialization.StreamingContext that contains the source and destination of the serialized stream associated with the System.Data.DataSet. |
WsDsStatus GetStatus(DataSet ds)
Gets the WsDs Status value from the property flags in the DataSet.
WsDsStatus GetStatus(DataSet ds)
Parameters
Type | Parameter name | Description |
---|---|---|
DataSet | ds | Input DataSet. |
Returns
Type | Description |
---|---|
WsDsStatus | The WsDs Status. |
void Initialize()
Initialize the WorkstationDataSet object. This method skips the ‘normal’ initializing path and does nothing.The true initialization of the WorkstationDataSet happens when calling InitializeFormats.
void Initialize()
void InitializeFormats()
Initialize the WorkstationDataSet object.
void InitializeFormats()
void SetStatusFlag(DataSet ds, WsDsStatus statusFlag, bool turnFlagOn)
Set the status flag of the dataset to None or Read.
void SetStatusFlag(DataSet ds, WsDsStatus statusFlag, bool turnFlagOn)
Parameters
Type | Parameter name | Description |
---|---|---|
DataSet | ds | Dataset whose status is to be set. |
WsDsStatus | statusFlag | Status flag value. |
Boolean | turnFlagOn | True to set the flag, false to remove it. |