C# Класс Opc.Ua.Com.Server.ComDaProxy

A base class for classes that implement an OPC COM specification.
Наследование: ComProxy
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddGroup ( string groupName, bool active, int updateRate, int clientHandle, int timeBias, float deadband, int lcid ) : ComDaGroup

Adds the group.

BrowseDown ( string targetName ) : void

Moves the current browse position down.

BrowseForElements ( string itemId, string continuationPoint, int maxElementsReturned, int elementTypeMask, string nameFilter, string &revisedContinuationPoint ) : IList

Browses the specified item id.

BrowseForItems ( string filter, short dataTypeFilter, int accessRightsFilter ) : IList

Browse for all items below the current branch.

BrowseForNames ( bool isBranch, string filter, short dataTypeFilter, int accessRightsFilter ) : IList

Browses the current branch.

BrowseTo ( string itemId ) : void

Moves the current browse position to the specified item.

BrowseUp ( ) : void

Moves the current browse position up.

ComDaProxy ( ) : System

Initializes a new instance of the ComDaProxy class.

GetGroupByHandle ( int serverHandle ) : ComDaGroup

Gets the group by handle.

GetGroupByName ( string groupName ) : ComDaGroup

Gets the group with the specified name.

GetGroups ( ) : Opc.Ua.Com.Server.ComDaGroup[]

Returns the current set of groups.

GetItemId ( string browseName ) : string

Gets the item id for the specified browse element.

GetItemIds ( string itemId, int propertyIds, string &itemIds ) : IList

Gets the item ids for the properties.

GetProperties ( ComDaReadPropertiesRequest requests ) : IList

Gets the properties.

GetProperties ( string itemId ) : IList

Gets the properties.

GetPropertyValues ( string itemId, int propertyIds ) : DaValue[]

Gets the property values.

Read ( string itemIds ) : DaValue[]

Reads the values for the specified item ids.

RemoveGroup ( ComDaGroup group ) : void

Removes the group.

Write ( string itemIds, DaValue values ) : int[]

Writes the values for the specified item ids.

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

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

An overrideable version of the Dispose.

OnSessionCreated ( ) : void

Called when a new session is created.

OnSessionReconected ( ) : void

Called when a session is reconnected.

OnSessionRemoved ( ) : void

Called when a session is removed.

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

Метод Описание
MapPropertyReadStatusToErrorCode ( StatusCode statusCode ) : int

Converts a StatusCode returned during a Read to an HRESULT.

MapReadStatusToErrorCode ( StatusCode statusCode ) : int

Converts a StatusCode returned during a Read to an HRESULT.

MapWriteStatusToErrorCode ( DataValue value, StatusCode statusCode ) : int

Converts a StatusCode returned during a Write to an HRESULT.

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

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

Adds the group.
public AddGroup ( string groupName, bool active, int updateRate, int clientHandle, int timeBias, float deadband, int lcid ) : ComDaGroup
groupName string The group name.
active bool if set to true the group is active.
updateRate int The update rate.
clientHandle int The client handle.
timeBias int The time bias.
deadband float The deadband.
lcid int The lcid.
Результат ComDaGroup

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

Moves the current browse position down.
public BrowseDown ( string targetName ) : void
targetName string
Результат void

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

Browses the specified item id.
public BrowseForElements ( string itemId, string continuationPoint, int maxElementsReturned, int elementTypeMask, string nameFilter, string &revisedContinuationPoint ) : IList
itemId string The item id.
continuationPoint string The continuation point.
maxElementsReturned int The max elements returned.
elementTypeMask int The element type mask.
nameFilter string The name filter.
revisedContinuationPoint string The revised continuation point.
Результат IList

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

Browse for all items below the current branch.
public BrowseForItems ( string filter, short dataTypeFilter, int accessRightsFilter ) : IList
filter string The filter.
dataTypeFilter short The data type filter.
accessRightsFilter int The access rights filter.
Результат IList

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

Browses the current branch.
public BrowseForNames ( bool isBranch, string filter, short dataTypeFilter, int accessRightsFilter ) : IList
isBranch bool if set to true the return branches.
filter string The filter.
dataTypeFilter short The data type filter.
accessRightsFilter int The access rights filter.
Результат IList

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

Moves the current browse position to the specified item.
public BrowseTo ( string itemId ) : void
itemId string
Результат void

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

Moves the current browse position up.
public BrowseUp ( ) : void
Результат void

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

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

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

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

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

Gets the group by handle.
public GetGroupByHandle ( int serverHandle ) : ComDaGroup
serverHandle int The server handle.
Результат ComDaGroup

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

Gets the group with the specified name.
public GetGroupByName ( string groupName ) : ComDaGroup
groupName string Name of the group.
Результат ComDaGroup

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

Returns the current set of groups.
public GetGroups ( ) : Opc.Ua.Com.Server.ComDaGroup[]
Результат Opc.Ua.Com.Server.ComDaGroup[]

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

Gets the item id for the specified browse element.
public GetItemId ( string browseName ) : string
browseName string The name of the browse element.
Результат string

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

Gets the item ids for the properties.
public GetItemIds ( string itemId, int propertyIds, string &itemIds ) : IList
itemId string The item id.
propertyIds int The property ids.
itemIds string The item ids.
Результат IList

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

Gets the properties.
public GetProperties ( ComDaReadPropertiesRequest requests ) : IList
requests ComDaReadPropertiesRequest The requests.
Результат IList

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

Gets the properties.
public GetProperties ( string itemId ) : IList
itemId string The item id.
Результат IList

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

Gets the property values.
public GetPropertyValues ( string itemId, int propertyIds ) : DaValue[]
itemId string The item id.
propertyIds int The property ids.
Результат DaValue[]

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

Called when a new session is created.
protected OnSessionCreated ( ) : void
Результат void

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

Called when a session is reconnected.
protected OnSessionReconected ( ) : void
Результат void

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

Called when a session is removed.
protected OnSessionRemoved ( ) : void
Результат void

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

Reads the values for the specified item ids.
public Read ( string itemIds ) : DaValue[]
itemIds string The item ids.
Результат DaValue[]

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

Removes the group.
public RemoveGroup ( ComDaGroup group ) : void
group ComDaGroup The group.
Результат void

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

Writes the values for the specified item ids.
public Write ( string itemIds, DaValue values ) : int[]
itemIds string The item ids.
values DaValue The values.
Результат int[]