MetaDataBase.Exist Method

Definition

Namespace: P1.ImageSdk

Check for existance of a metaobject in the metadatabase

public bool Exist(string path);

A P1MetaData object will always be returned not matter if function was able to create object or not. To chech the validity of the object the IsValid() method can be used. It is safe to nest a CreateMetaObject call with a getter or setter without checking for validity. But the final error code or return value should be tested for success.

Parameters:

path

The path to the object that the user wants to create. The metaobjects are orginized in a tree structure where each level of the tree is divided by a “:” This function can also be used to check if a list of objects exist or not. Eg. a namespace in the xmp block

Returns:

Returns A boolean value that indicates if metaobject exist or not. true means it does exist.