ImageGear .NET
LookUp(Enum[]) Method
Example 




Path to a data element in the metadata structure.
Searches the node list recursively for a node, according to the path parameter.
Syntax
'Declaration
 
Public Overloads Function LookUp( _
   ByVal path() As Enum _
) As ImGearMetadataNode
'Usage
 
Dim instance As ImGearMetadataNodeList
Dim path() As Enum
Dim value As ImGearMetadataNode
 
value = instance.LookUp(path)
public ImGearMetadataNode LookUp( 
   Enum[] path
)
public: ImGearMetadataNode* LookUp( 
   Enum*[]* path
) 
public:
ImGearMetadataNode^ LookUp( 
   array<Enum^>^ path
) 

Parameters

path
Path to a data element in the metadata structure.

Return Value

Instanse of ImGearMetadataNode class object.
Remarks
Length of the path should correspond to the metadata structure depth, at which the desired node is located.

If a node is not present, the method returns null.

The method does not search in the subtrees of the node list.

Example
System.Enum[] path = new Enum[]
 {
     ImGearDICOMTagsIDs.DataSet,
     ImGearDICOMTagsIDs.DeviceSequence,
     ImGearDICOMTagsIDs.Item,
     ImGearDICOMTagsIDs.CodeValue
 };
ImGearMetadataNode Node = rootNode.Children.LookUp(path);
Dim path(3) As System.Enum
path(0) = ImGearDICOMTagsIDs.DataSet
path(1) = ImGearDICOMTagsIDs.DeviceSequence
path(2) = ImGearDICOMTagsIDs.Item
path(3) = ImGearDICOMTagsIDs.CodeValue
Dim Node As ImGearMetadataNode = rootNode.Children.LookUp(path)
See Also

Reference

ImGearMetadataNodeList Class
ImGearMetadataNodeList Members
Overload List
IImGearMetadataDictRecord Interface

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback