IMetabaseUpdateNode.AccessAllowed

Syntax

AccessAllowed([accesstype: MetabaseUpdateCopyType = 1]):MetabaseUpdateNodeAccessType;

Parameters

accesstype. Type of object copying. Optional parameter, the default value is 1 (Available).

Description

The AccessAllowed property returns the type of access to the update object.

Example

To execute the example, add a link to the Metabase system assembly. The C:\Update.pefx update file is required. The repository should have an object with the OBJ1 identifier.

Sub Main;
Var
    MB: IMetabase;
    Update: IMetabaseUpdate;
    UON: IMetabaseUpdateObjectNode;
    obj: IMetabaseObjectDescriptor;
    objkey: integer;
Begin
    MB := MetabaseClass.Active;
    Update := Mb.CreateUpdate;
    Update.LoadFromFileNF("D:\Update.pefx");
    obj := MB.ItemById("OBJ1"); 
    objkey := obj.Key;
    Update.AllowReplaceSD := True;
    UON := Update.RootFolder.FindObject(objkey);
    UON.UpdatePart := MetabaseObjectUpdatePart.ReplaceSecurityDescriptor;
    debug.WriteLine(UON.AccessAllowed); 
End Sub Main;

After executing the example the console window displays the information with the type of access to the object with the OBJ1 identifier.

See also:

IMetabaseUpdateNode