IMetabaseObjectDescriptor.GetCheckOutInfo

Syntax

GetCheckOutInfo: IObjectCheckOutInfo;

Description

The GetCheckOutInfo method returns information about the object lockings.

Example

Executing the example requires that the repository contains an object with the Report_1 identifier.

Add links to the Metabase, Ui system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    MDesc: IMetabaseObjectDescriptor;
    Info: IObjectCheckOutInfo;
    UserInfo: IObjectCheckOutInfoUser;
Begin
    MB := MetabaseClass.Active;
    MDesc := MB.ItemById("Report_1");
    Info := MDesc.GetCheckOutInfo;
    For Each UserInfo In Info Do
        Debug.Write("User: " + UserInfo.UserName);
        Debug.Write("; Workstation: " + UserInfo.MachineName);
        Debug.Write("; Locking date and time: " + UserInfo.Stamp.ToString);
        Debug.WriteLine("; Comment: " + UserInfo.Comment);
    End For;
End Sub UserProc;

After executing the example the development environment console displays information about the lockings of the specified object.

See also:

IMetabaseObjectDescriptor