.NET Based OPC UA Client/Server SDK
2.5.8.410
|
Provides access to a UA information model using classes with special attributes defined. More...
Inherits UnifiedAutomation.UaClient.SessionMethodHelper.
Public Member Functions | |
ModelManager (ApplicationInstance application) | |
Initializes a new instance of the ModelManager class. More... | |
ModelManager (Session session) | |
Initializes a new instance of the ModelManager class. More... | |
ModelManager (Subscription subscription) | |
Initializes a new instance of the ModelManager class. More... | |
ModelHandle | Read (NodeId rootId, object instanceOrHandle) |
Reads the properties of instance of type which has a model mapping. More... | |
IAsyncResult | BeginRead (NodeId rootId, object instanceOrHandle, AsyncCallback callback, object callbackData) |
Begins an operation to read the properties of instance of type which has a model mapping. More... | |
ModelHandle | EndRead (IAsyncResult result) |
Completes an operation to read properties of instance of type which has a model mapping. More... | |
ModelHandle | Write (NodeId rootId, object instanceOrHandle) |
Writes the properties of instance of type which has a model mapping. More... | |
IAsyncResult | BeginWrite (NodeId rootId, object instanceOrHandle, AsyncCallback callback, object callbackData) |
Begins an operation to write the properties of instance of type which has a model mapping. More... | |
ModelHandle | EndWrite (IAsyncResult result) |
Completes an operation to write the properties of instance of type which has a model mapping. More... | |
ModelSubscription | Subscribe (NodeId rootId, object instanceOrHandle, double samplingInterval) |
Subscribes the properties of instance of type which has a model mapping. More... | |
IAsyncResult | BeginSubscribe (NodeId rootId, object instanceOrHandle, double samplingInterval, AsyncCallback callback, object callbackData) |
Begins an operation to Subscribe the properties of instance of type which has a model mapping. More... | |
ModelSubscription | EndSubscribe (IAsyncResult result) |
Completes an operation to Subscribe properties of instance of type which has a model mapping. More... | |
List< StatusCode > | Unsubscribe (ModelSubscription subscriptionHandle) |
Unsubscribes the properties of instance of type which has a model mapping. More... | |
IAsyncResult | BeginUnsubscribe (ModelSubscription subscriptionHandle, AsyncCallback callback, object callbackData) |
Begins an operation to unsubscribe the properties of instance of type which has a model mapping. More... | |
List< StatusCode > | EndUnsubscribe (IAsyncResult result) |
Completes an operation to unsubscribe to properties of instance of type which has a model mapping. More... | |
TypeDescription | GetTypeDescription (NodeId typeId, TypeDescriptionSelection selection, RequestSettings settings) |
Begins the get method description. More... | |
IAsyncResult | BeginGetTypeDescription (NodeId typeId, TypeDescriptionSelection selection, RequestSettings settings, AsyncCallback callback, object userData) |
Begins the get method description. More... | |
TypeDescription | EndGetTypeDescription (IAsyncResult result) |
Ends the get method description. More... | |
MethodDescription | GetMethodDescription (NodeId methodId) |
Begins the get method description. More... | |
MethodDescription | GetMethodDescription (NodeId methodId, RequestSettings settings) |
Begins the get method description. More... | |
MethodDescription | GetMethodDescription (NodeId objectId, IList< QualifiedName > browsePath, RequestSettings settings) |
Begins the get method description. More... | |
IAsyncResult | BeginGetMethodDescription (NodeId methodId, AsyncCallback callback, object userData) |
Begins the get method description. More... | |
IAsyncResult | BeginGetMethodDescription (NodeId methodId, RequestSettings settings, AsyncCallback callback, object userData) |
Begins the get method description. More... | |
IAsyncResult | BeginGetMethodDescription (NodeId startingNodeId, IList< QualifiedName > browsePath, RequestSettings settings, AsyncCallback callback, object userData) |
Begins the get method description. More... | |
MethodDescription | EndGetMethodDescription (IAsyncResult result) |
Ends the get method description. More... | |
Public Member Functions inherited from UnifiedAutomation.UaClient.SessionMethodHelper | |
SessionMethodHelper (ApplicationInstance application) | |
Initializes a new instance of the SessionMethodHelper class. More... | |
SessionMethodHelper (Session session) | |
Initializes a new instance of the SessionMethodHelper class. More... | |
void | Dispose () |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More... | |
void | Connect (int timeout) |
Connects to the server. More... | |
void | BeginConnect (AsyncCallback callback, object callbackData) |
Connects to the server. More... | |
void | Disconnect () |
Disconnects from the server. More... | |
Events | |
EventHandler < ModelObjectChangedEventArgs > | ObjectChanged |
Raised when the value of one or more components of an object changes. More... | |
Events inherited from UnifiedAutomation.UaClient.SessionMethodHelper | |
EventHandler | ServerStatusChanged |
Occurs when the server status changes. More... | |
EventHandler < CredentialsRequiredEventArgs > | AdminCredentialsRequired |
Raised when admin credentials are required. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from UnifiedAutomation.UaClient.SessionMethodHelper | |
virtual void | Dispose (bool disposing) |
Releases unmanaged and—optionally—managed resources. More... | |
UserIdentity | RequestAdminCredentials () |
Gets the admin credentials. More... | |
Properties inherited from UnifiedAutomation.UaClient.SessionMethodHelper | |
string | EndpointUrl [get, set] |
Gets or sets the endpoint URL. More... | |
Session | Session [get] |
Gets the session. More... | |
RequestSettings | DefaultRequestSettings [get, set] |
Gets or sets the default request settings. More... | |
int | DefaultTimeout [get] |
Gets the default timeout. More... | |
UserIdentity | AdminCredentials [get, set] |
Gets or sets the administrator credentials. More... | |
bool | IsConnected [get] |
Gets a value indicating whether a connection to the server is active. More... | |
bool | MustCloseSession [get] |
A flag indicating that the object created the session and therefore must close it. More... | |
Provides access to a UA information model using classes with special attributes defined.
|
inline |
Initializes a new instance of the ModelManager class.
application | The application. |
|
inline |
Initializes a new instance of the ModelManager class.
session | The session. |
|
inline |
Initializes a new instance of the ModelManager class.
subscription | The subscription. |
|
inline |
Begins the get method description.
methodId | The method id. |
callback | The callback. |
userData | The user data. |
|
inline |
Begins the get method description.
methodId | The method id. |
settings | The settings. |
callback | The callback. |
userData | The user data. |
|
inline |
Begins the get method description.
startingNodeId | The starting node id. |
browsePath | The browse path. |
settings | The settings. |
callback | The callback. |
userData | The user data. |
|
inline |
Begins the get method description.
typeId | The type id. |
selection | The selection. |
settings | The settings. |
callback | The callback. |
userData | The user data. |
|
inline |
Begins an operation to read the properties of instance of type which has a model mapping.
rootId | The NodeId for the root of the instance in the Server address space. |
instanceOrHandle | The instance or handle (an instance of the ModelHandle class). |
callback | The callback. |
callbackData | The callback data. |
|
inline |
Begins an operation to Subscribe the properties of instance of type which has a model mapping.
rootId | The NodeId for the root of the instance in the Server address space. |
instanceOrHandle | The instance or handle (an instance of the ModelHandle class). |
samplingInterval | The sampling interval in milliseconds. |
callback | The callback. |
callbackData | The callback data. |
|
inline |
Begins an operation to unsubscribe the properties of instance of type which has a model mapping.
subscriptionHandle | The handle returned from the Subscribe method. |
callback | The callback. |
callbackData | The callback data. |
|
inline |
Begins an operation to write the properties of instance of type which has a model mapping.
rootId | The NodeId for the root of the instance in the Server address space. |
instanceOrHandle | The instance or handle (an instance of the ModelHandle class). |
callback | The callback. |
callbackData | The callback data. |
|
inline |
Ends the get method description.
result | The result. |
|
inline |
Ends the get method description.
result | The result. |
|
inline |
Completes an operation to read properties of instance of type which has a model mapping.
result | The object used to manage the state of the asynchronous operation. |
When the method completes the properties of the instance are updated with the current values from the Server. If any error occurs for individual properties the LastErrors array in the handle is updated with the error code.
|
inline |
Completes an operation to Subscribe properties of instance of type which has a model mapping.
result | The object used to manage the state of the asynchronous operation. |
When the method completes the properties of the instance are updated whenever the Server reports a data change. These data changes are reported with the ObjectChanged event. If any error occurs creating MonitoredItems for individual properties the LastErrors array in the handle is updated with the error code.
|
inline |
Completes an operation to unsubscribe to properties of instance of type which has a model mapping.
result | The object used to manage the state of the asynchronous operation. |
|
inline |
Completes an operation to write the properties of instance of type which has a model mapping.
result | The object used to manage the state of the asynchronous operation. |
This method updates the mapped properties on the Server with the current values stored in the instance. If any error occurs for individual properties the LastErrors array in the handle is updated with the error code.
|
inline |
Begins the get method description.
methodId | The method id. |
|
inline |
Begins the get method description.
methodId | The method id. |
settings | The settings. |
|
inline |
Begins the get method description.
objectId | The object id. |
browsePath | The browse path. |
settings | The settings. |
|
inline |
Begins the get method description.
typeId | The type id. |
selection | The selection. |
settings | The settings. |
|
inline |
Reads the properties of instance of type which has a model mapping.
rootId | The NodeId for the root of the instance in the Server address space. |
instanceOrHandle | The instance or handle (an instance of the ModelHandle class). |
When the method completes the properties of the instance are updated with the current values from the Server. If any error occurs for individual properties the LastErrors array in the handle is updated with the error code.
|
inline |
Subscribes the properties of instance of type which has a model mapping.
rootId | The NodeId for the root of the instance in the Server address space. |
instanceOrHandle | The instance or handle (an instance of the ModelHandle class). |
samplingInterval | The sampling interval in milliseconds. |
When the method completes the properties of the instance are updated whenever the Server reports a data change. These data changes are reported with the ObjectChanged event. If any error occurs creating MonitoredItems for individual properties the LastErrors array in the handle is updated with the error code.
|
inline |
Unsubscribes the properties of instance of type which has a model mapping.
subscriptionHandle | The handle returned from the Subscribe method. |
|
inline |
Writes the properties of instance of type which has a model mapping.
rootId | The NodeId for the root of the instance in the Server address space. |
instanceOrHandle | The instance or handle (an instance of the ModelHandle class). |
This method updates the mapped properties on the Server with the current values stored in the instance. If any error occurs for individual properties the LastErrors array in the handle is updated with the error code.
EventHandler<ModelObjectChangedEventArgs> UnifiedAutomation.UaClient.ModelManager.ObjectChanged |
Raised when the value of one or more components of an object changes.