The method can be overridden with an application specific implementation.
The default implementation returns in-memory nodes as valid.
Visual Basic (Declaration) | |
---|---|
Protected Overridable Function GetNodeHandle( _ ByVal context As OperationContext, _ ByVal nodeId As NodeId, _ ByVal attributeId As UInteger, _ ByVal cache As IDictionary(Of NodeId,NodeState), _ ByVal reason As GetHandleReason _ ) As NodeHandle |
C# | |
---|---|
protected virtual NodeHandle GetNodeHandle( OperationContext context, NodeId nodeId, uint attributeId, IDictionary<NodeId,NodeState> cache, GetHandleReason reason ) |
Parameters
- context
- OpereationContext of this call.
- nodeId
- The NodeId to be processed.
- attributeId
- 0 or attribute ID if a Read operation is processed.
- cache
- A cache ther application can use to increase performance.
- reason
- Indicates what UA client request is being processed.
Return Value
null is returned if the NodeId is invalid.A handle with the node object == null indicates that the node needs to be validated in a later step.
This must efficiently determine whether the node belongs to the node manager. If it does belong to
NodeManager it should return a handle that does not require the NodeId to be validated again when
the handle is passed into other methods such as 'Read' or 'Write'.
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows 7, Windows Server 2008 family