C# Class Quickstarts.AlarmConditionClient.FormUtils

Defines numerous re-useable utility functions.
Mostra file Open project: OPCFoundation/UA-.NET Class Usage Examples

Public Properties

Property Type Description
KnownEventTypes Opc.Ua.NodeId[]

Public Methods

Method Description
Browse ( Session session, BrowseDescription nodeToBrowse, bool throwOnError ) : ReferenceDescriptionCollection

Browses the address space and returns the references found.

BrowseSuperTypes ( Session session, Opc.Ua.NodeId typeId, bool throwOnError ) : ReferenceDescriptionCollection

Browses the address space and returns all of the supertypes of the specified type node.

ConstructEvent ( Session session, MonitoredItem monitoredItem, EventFieldList notification, NodeId>.Dictionary eventTypeMappings ) : BaseEventState

Constructs an event object from a notification.

FindEventType ( MonitoredItem monitoredItem, EventFieldList notification ) : Opc.Ua.NodeId

Finds the type of the event for the notification.

SelectEndpoint ( string discoveryUrl, bool useSecurity ) : EndpointDescription

Finds the endpoint that best matches the current settings.

Method Details

Browse() public static method

Browses the address space and returns the references found.
public static Browse ( Session session, BrowseDescription nodeToBrowse, bool throwOnError ) : ReferenceDescriptionCollection
session Opc.Ua.Client.Session The session.
nodeToBrowse Opc.Ua.BrowseDescription The NodeId for the starting node.
throwOnError bool if set to true a exception will be thrown on an error.
return ReferenceDescriptionCollection

BrowseSuperTypes() public static method

Browses the address space and returns all of the supertypes of the specified type node.
public static BrowseSuperTypes ( Session session, Opc.Ua.NodeId typeId, bool throwOnError ) : ReferenceDescriptionCollection
session Opc.Ua.Client.Session The session.
typeId Opc.Ua.NodeId The NodeId for a type node in the address space.
throwOnError bool if set to true a exception will be thrown on an error.
return ReferenceDescriptionCollection

ConstructEvent() public static method

Constructs an event object from a notification.
public static ConstructEvent ( Session session, MonitoredItem monitoredItem, EventFieldList notification, NodeId>.Dictionary eventTypeMappings ) : BaseEventState
session Opc.Ua.Client.Session The session.
monitoredItem Opc.Ua.Client.MonitoredItem The monitored item that produced the notification.
notification Opc.Ua.EventFieldList The notification.
eventTypeMappings NodeId>.Dictionary Mapping between event types and known event types.
return Opc.Ua.BaseEventState

FindEventType() public static method

Finds the type of the event for the notification.
public static FindEventType ( MonitoredItem monitoredItem, EventFieldList notification ) : Opc.Ua.NodeId
monitoredItem Opc.Ua.Client.MonitoredItem The monitored item.
notification Opc.Ua.EventFieldList The notification.
return Opc.Ua.NodeId

SelectEndpoint() public static method

Finds the endpoint that best matches the current settings.
public static SelectEndpoint ( string discoveryUrl, bool useSecurity ) : EndpointDescription
discoveryUrl string The discovery URL.
useSecurity bool if set to true select an endpoint that uses security.
return Opc.Ua.EndpointDescription

Property Details

KnownEventTypes public_oe static_oe property

The known event types which can be constructed by ConstructEvent()
public static NodeId[],Opc.Ua KnownEventTypes
return Opc.Ua.NodeId[]