IMetabaseObjectDescriptor.Namespace_

Syntax

Namespace_: IMetabaseObjectDescriptor

Description

The Namespace_ property returns description of the container object, which stores the current object.

Comments

The Namespace_ property will be available only for the objects stored in container objects. For the rest of the objects the property returns Null.

Example

The example describes the GetNamespace function.

Add a link to the Metabase system assembly.

Function GetNamespace(Descriptor: IMetabaseObjectDescriptor): IMetabaseObjectDescriptor;
Var
    Space: IMetabaseObjectDescriptor;
Begin
    Space := Descriptor.Namespace_;
    If Space = Null Then
        Space := Descriptor.Metabase.Root;
    End If;
    Return Space;
End Function GetNamespace;

The specified function can be used to get description of the object that is a container for the object sent as parameter. If the sent object is not stored in the container object, the function returns description of the repository root folder.

See also:

IMetabaseObjectDescriptor