MetaDataBase.GetObject Method

Definition

Namespace: P1.ImageSdk

Retrieve a metadata object from the metadatabase

public MetaObject GetObject(string path);

A P1MetaData object will always be returned not matter if the metaobject was found or not. To chech the validity of the object the IsValid() method can be used. It is safe to nest both a GetMetaObject call with a getter or setter without checking for validity. If metaobject is not found then an error will just be returned by the getter or setter.

Parameters:

path

The path to the object. The metaobjects are orginized in a tree structure where each level of the tree is divided by a “:”

Returns:

Returns a P1MetaObject. To check if an object was found can be checked with the IsValid() function. But it is safe to nest this function with a getter or setter.