コード例 #1
0
        private static void RemoveAuthorization(Guid qvsId, string doc, string name)
        {
            DocumentNode        docNode = FindDoc(qvsId, doc);
            DocumentMetaData    dm      = apiClient.GetDocumentMetaData(docNode, DocumentMetaDataScope.Authorization);
            DocumentAccessEntry dae     = dm.Authorization.Access.Find(e => e.UserName == name);

            dm.Authorization.Access.Remove(dae);
            apiClient.SaveDocumentMetaData(dm);
        }