Click or drag to resize

RemDocumentGetRelations Method

Paperwork .Net Kütüphanesi
Nesne numarası verilen belgenin ilişkili olduğu belgelerin listesini döner.

Namespace:  Paperwork.Connect
Assembly:  Paperwork.Connect (in Paperwork.Connect.dll) Version: 5.0.0.0
Syntax
C#
public a_NavigationInfo GetRelations(
	ObjectID objectId
)

Parameters

objectId
Type: ObjectID
Belgenin nesne numarası

Return Value

Type: a_NavigationInfo
Examples
C#
public void GetRelations()
{
    ObjectID oid = new ObjectID("FF00010000008526");
    a_NavigationInfo retval = p.rDocument.GetRelations(oid);
    if (retval == null)
        Console.WriteLine("İlişkili olduğu bir belge bulunamadı.");

    foreach (ITypes item in retval.folderObjects)
    {
        item.Get("OBJECT_TYPE").ToString();
        var rLocation = p.rNavigation.GetFolderFullPathByID(new ObjectID(item.Get("FOLDER_ID").ToString()));
        Console.WriteLine("Location: " + rLocation);
        Console.WriteLine("Object Name: " + item.Get("OBJECT_NAME").ToString());
        Console.WriteLine("File Format: " + item.Get("FILE_FORMAT").ToString());
    }
    Console.ReadLine();
}
See Also