CmisObject を更新しようとすると、タイプ 'DotCMIS.Exceptions.CmisRuntimeException' の最初のチャンス例外が DotCMIS.dll CmisRuntimeException Unauthorized で発生し続けます。これは私のコードです。
IOperationContext oc = session.CreateOperationContext();
oc.CacheEnabled = false;
oc.FilterString = "cmis:name, cmis:objectId, cmis:objectTypeId";
ICmisObject doc = session.GetObject(curProj.SharePointId, oc);
if (doc != null)
{
try
{
String fileName = curProj.ProjectFilePath.Substring(curProj.ProjectFilePath.LastIndexOf('\\') + 1);
IDictionary<String, Object> properties = new Dictionary<String, Object>();
properties.Add(PropertyIds.Name, fileName);
ICmisObject objectId = doc.UpdateProperties(properties);
}
catch (DotCMIS.Exceptions.CmisRuntimeException re)
{
System.Console.WriteLine("CmisRuntimeException " + re.Message);
}
catch (DotCMIS.Exceptions.CmisConstraintException cce)
{
System.Console.WriteLine("CmisConstraintException " + cce.Message + " " + doc.GetPropertyValue(PropertyIds.ObjectId));
}
}