Click or drag to resize

RemDocumentUpdateObjectAcl Method

Paperwork .Net Kütüphanesi
Doküman yetki setini değiştirir. Verilen ACL numarasına göre dokümanın ACL ismini değiştirir.

Namespace:  Paperwork.Connect
Assembly:  Paperwork.Connect (in Paperwork.Connect.dll) Version: 5.0.0.0
Syntax
C#
public a_GenericResult UpdateObjectAcl(
	ObjectID objectId,
	string newAclId,
	bool byName = false
)

Parameters

objectId
Type: ObjectID
Değiştirilecek doküman nesne numarası
newAclId
Type: SystemString
Yeni ACL nesne numarası
byName (Optional)
Type: SystemBoolean
True ise ismiyle günceller (varsayılan : False)

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 UpdateObjectAcl() 
            {
                   string path   = @"TR_CABINETS/Test123";
                   a_PathInfo pi = p.rNavigation.getFolderPath(path);
                   ObjectID str_folderId = new ObjectID(pi.ObjectList[pi.ObjectList.Count - 1]);
                   ObservableCollection<LookupItem> acls = p.rLookup.GetACLs("Default ACL");
                   
                   if (acls.Count < 0)
                       throw new Exception("Yetkiseti bulunamadı");
                   
                   string aclId = acls[0].ObjectId;
                   
                   a_GenericResult retval = p.rDocument.UpdateObjectAcl(str_folderId, aclId);
                   Console.WriteLine(retval.ErrorCode);
                   Console.ReadLine();
            }
See Also