Click or drag to resize

RemDocumentChangeFolderIcon Method

Paperwork .Net Kütüphanesi
Kabinetler için ikon değiştirme fonksiyonudur.

Namespace:  Paperwork.Connect
Assembly:  Paperwork.Connect (in Paperwork.Connect.dll) Version: 5.0.0.0
Syntax
C#
public a_GenericResult ChangeFolderIcon(
	ObjectID objectId,
	string iconName
)

Parameters

objectId
Type: ObjectID
İkonu değiştirilecek nesne numarası
iconName
Type: SystemString
İkon adı

Return Value

Type: a_GenericResult
a_GenericResult nesesi içinde , ErrorCode=0 ise işlem başarılıdır. Aksi taktirde Result ve Message alanları kontrol ediniz.
Examples
C#
 
            public void ChangeFolderIcon()
            {
                     string path = @"TR_CABINETS/Gelen Evrak";               

                     a_PathInfo pi = p.rNavigation.getFolderPath(path);
                   
                     ObjectID str_folderId = new ObjectID(pi.ObjectList[pi.ObjectList.Count - 1]);

                     string icon = "5";

                     a_GenericResult retval = p.rDocument.ChangeFolderIcon(str_folderId, icon);

                     if (retval.ErrorCode != 0)
                         throw new Exception(retval.Message);
                         Console.WriteLine(retval.Result);
                         Console.ReadLine();
            }
See Also