RemDocumentUpdateObjectAcl Method |
Namespace: Paperwork.Connect
public a_GenericResult UpdateObjectAcl( ObjectID objectId, string newAclId, bool byName = false )
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();
}