Namespace_: IMetabaseObjectDescriptor
The Namespace_ property returns description of the container object, which stores the current object.
The Namespace_ property will be available only for the objects stored in container objects. For the rest of the objects the property returns Null.
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: