MetaDataBase.CreateObject Method

Definition

Namespace: P1.ImageSdk

Create a new metadata object and insert it in the metadatabase

public MetaObject CreateObject(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 “:”. The last part

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.