C# Класс Opc.Ua.Client.Controls.ClientUtils

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ImageList System.Windows.Forms.ImageList

Открытые методы

Метод Описание
Browse ( Session session, BrowseDescription nodeToBrowse, bool throwOnError ) : ReferenceDescriptionCollection

Browses the address space and returns the references found.

Browse ( Session session, BrowseDescriptionCollection nodesToBrowse, bool throwOnError ) : ReferenceDescriptionCollection

Browses the address space and returns the references found.

Browse ( Session session, ViewDescription view, BrowseDescription nodeToBrowse, bool throwOnError ) : ReferenceDescriptionCollection

Browses the address space and returns the references found.

Browse ( Session session, ViewDescription view, BrowseDescriptionCollection nodesToBrowse, bool throwOnError ) : ReferenceDescriptionCollection

Browses the address space and returns the references found.

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

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

ClientUtils ( ) : System

Initializes a new instance of the ClientUtils class.

CollectInstanceDeclarationsForType ( Session session, NodeId typeId ) : List

Collects the instance declarations for a type.

CollectInstanceDeclarationsForType ( Session session, NodeId typeId, bool includeSupertypes ) : List

Collects the instance declarations for a type.

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

Constructs an event object from a notification.

DiscoverServers ( ApplicationConfiguration configuration ) : IList

Discovers the servers on the local machine.

FindEventType ( MonitoredItem monitoredItem, EventFieldList notification ) : NodeId

Finds the type of the event for the notification.

GetAccessLevelDisplayText ( byte accessLevel ) : string

Gets the display text for the access level attribute.

GetAppIcon ( ) : System.Drawing.Icon

Returns the application icon.

GetAttributeDisplayText ( Session session, uint attributeId, Variant value ) : string

Gets the display text for the specified attribute.

GetEventNotifierDisplayText ( byte eventNotifier ) : string

Gets the display text for the event notifier attribute.

GetImageIndex ( Session session, NodeClass nodeClass, ExpandedNodeId typeDefinitionId, bool selected ) : int

Returns an image index for the specified attribute.

GetImageIndex ( bool isOutputArgument, object value ) : int

Returns an image index for the specified method argument.

GetImageIndex ( uint attributeId, object value ) : int

Returns an image index for the specified attribute.

GetValueRankDisplayText ( int valueRank ) : string

Gets the display text for the value rank attribute.

HandleException ( string caption, Exception e ) : void

Handles an exception.

SelectEndpoint ( string discoveryUrl, bool useSecurity ) : EndpointDescription

Finds the endpoint that best matches the current settings.

TranslateBrowsePaths ( Session session, NodeId startNodeId, NamespaceTable namespacesUris ) : List

Returns the node ids for a set of relative paths.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

Приватные методы

Метод Описание
CollectFields ( Session session, NodeId nodeId, QualifiedNameCollection parentPath, SimpleAttributeOperandCollection fields, List fieldNodeIds, QualifiedNameCollection>.Dictionary foundNodes ) : void

Collects the fields for the instance node.

CollectFieldsForInstance ( Session session, NodeId instanceId, SimpleAttributeOperandCollection fields, List fieldNodeIds ) : void

Collects the fields for the instance.

CollectFieldsForType ( Session session, NodeId typeId, SimpleAttributeOperandCollection fields, List fieldNodeIds ) : void

Collects the fields for the type.

CollectInstanceDeclarations ( Session session, NodeId typeId, InstanceDeclaration parent, List instances, InstanceDeclaration>.IDictionary map ) : void

Collects the fields for the instance node.

ContainsPath ( SimpleAttributeOperandCollection selectClause, QualifiedNameCollection browsePath ) : int

Determines whether the specified select clause contains the browse path.

FindTargetOfReference ( Session session, List nodeIds, NodeId referenceTypeId, bool throwOnError ) : List

Finds the targets for the specified reference.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

UpdateInstanceDescriptions ( Session session, List instances, bool throwOnError ) : void

Finds the targets for the specified reference.

Описание методов

Browse() публичный статический Метод

Browses the address space and returns the references found.
public static Browse ( Session session, BrowseDescription nodeToBrowse, bool throwOnError ) : ReferenceDescriptionCollection
session Session The session.
nodeToBrowse BrowseDescription The NodeId for the starting node.
throwOnError bool if set to true a exception will be thrown on an error.
Результат ReferenceDescriptionCollection

Browse() публичный статический Метод

Browses the address space and returns the references found.
public static Browse ( Session session, BrowseDescriptionCollection nodesToBrowse, bool throwOnError ) : ReferenceDescriptionCollection
session Session The session.
nodesToBrowse BrowseDescriptionCollection The set of browse operations to perform.
throwOnError bool if set to true a exception will be thrown on an error.
Результат ReferenceDescriptionCollection

Browse() публичный статический Метод

Browses the address space and returns the references found.
public static Browse ( Session session, ViewDescription view, BrowseDescription nodeToBrowse, bool throwOnError ) : ReferenceDescriptionCollection
session Session
view ViewDescription
nodeToBrowse BrowseDescription
throwOnError bool
Результат ReferenceDescriptionCollection

Browse() публичный статический Метод

Browses the address space and returns the references found.
public static Browse ( Session session, ViewDescription view, BrowseDescriptionCollection nodesToBrowse, bool throwOnError ) : ReferenceDescriptionCollection
session Session
view ViewDescription
nodesToBrowse BrowseDescriptionCollection
throwOnError bool
Результат ReferenceDescriptionCollection

BrowseSuperTypes() публичный статический Метод

Browses the address space and returns all of the supertypes of the specified type node.
public static BrowseSuperTypes ( Session session, NodeId typeId, bool throwOnError ) : ReferenceDescriptionCollection
session Session The session.
typeId 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.
Результат ReferenceDescriptionCollection

ClientUtils() публичный Метод

Initializes a new instance of the ClientUtils class.
public ClientUtils ( ) : System
Результат System

CollectInstanceDeclarationsForType() публичный статический Метод

Collects the instance declarations for a type.
public static CollectInstanceDeclarationsForType ( Session session, NodeId typeId ) : List
session Session
typeId NodeId
Результат List

CollectInstanceDeclarationsForType() публичный статический Метод

Collects the instance declarations for a type.
public static CollectInstanceDeclarationsForType ( Session session, NodeId typeId, bool includeSupertypes ) : List
session Session
typeId NodeId
includeSupertypes bool
Результат List

ConstructEvent() публичный статический Метод

Constructs an event object from a notification.
public static ConstructEvent ( Session session, MonitoredItem monitoredItem, EventFieldList notification, Type>.Dictionary knownEventTypes, NodeId>.Dictionary eventTypeMappings ) : BaseEventState
session Session The session.
monitoredItem MonitoredItem The monitored item that produced the notification.
notification EventFieldList The notification.
knownEventTypes Type>.Dictionary The known event types.
eventTypeMappings NodeId>.Dictionary Mapping between event types and known event types.
Результат BaseEventState

DiscoverServers() публичный статический Метод

Discovers the servers on the local machine.
public static DiscoverServers ( ApplicationConfiguration configuration ) : IList
configuration ApplicationConfiguration The configuration.
Результат IList

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

FindEventType() публичный статический Метод

Finds the type of the event for the notification.
public static FindEventType ( MonitoredItem monitoredItem, EventFieldList notification ) : NodeId
monitoredItem MonitoredItem The monitored item.
notification EventFieldList The notification.
Результат NodeId

GetAccessLevelDisplayText() публичный статический Метод

Gets the display text for the access level attribute.
public static GetAccessLevelDisplayText ( byte accessLevel ) : string
accessLevel byte The access level.
Результат string

GetAppIcon() публичный статический Метод

Returns the application icon.
public static GetAppIcon ( ) : System.Drawing.Icon
Результат System.Drawing.Icon

GetAttributeDisplayText() публичный статический Метод

Gets the display text for the specified attribute.
public static GetAttributeDisplayText ( Session session, uint attributeId, Variant value ) : string
session Session The currently active session.
attributeId uint The id of the attribute.
value Variant The value of the attribute.
Результат string

GetEventNotifierDisplayText() публичный статический Метод

Gets the display text for the event notifier attribute.
public static GetEventNotifierDisplayText ( byte eventNotifier ) : string
eventNotifier byte The event notifier.
Результат string

GetImageIndex() публичный статический Метод

Returns an image index for the specified attribute.
public static GetImageIndex ( Session session, NodeClass nodeClass, ExpandedNodeId typeDefinitionId, bool selected ) : int
session Session
nodeClass NodeClass
typeDefinitionId ExpandedNodeId
selected bool
Результат int

GetImageIndex() публичный статический Метод

Returns an image index for the specified method argument.
public static GetImageIndex ( bool isOutputArgument, object value ) : int
isOutputArgument bool
value object
Результат int

GetImageIndex() публичный статический Метод

Returns an image index for the specified attribute.
public static GetImageIndex ( uint attributeId, object value ) : int
attributeId uint
value object
Результат int

GetValueRankDisplayText() публичный статический Метод

Gets the display text for the value rank attribute.
public static GetValueRankDisplayText ( int valueRank ) : string
valueRank int The value rank.
Результат string

HandleException() публичный статический Метод

Handles an exception.
public static HandleException ( string caption, Exception e ) : void
caption string
e Exception
Результат void

SelectEndpoint() публичный статический Метод

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.
Результат EndpointDescription

TranslateBrowsePaths() публичный статический Метод

Returns the node ids for a set of relative paths.
public static TranslateBrowsePaths ( Session session, NodeId startNodeId, NamespaceTable namespacesUris ) : List
session Session An open session with the server to use.
startNodeId NodeId The starting node for the relative paths.
namespacesUris NamespaceTable The namespace URIs referenced by the relative paths.
Результат List

Описание свойств

ImageList публичное свойство

A list of shared images for controls.
public System.Windows.Forms.ImageList ImageList
Результат System.Windows.Forms.ImageList