public static bool IsContentStreamHashSupported(this ISession session) {
try {
var type = session.GetTypeDefinition(BaseTypeId.CmisDocument.GetCmisValue());
if (type == null) {
return false;
}
foreach (var prop in type.PropertyDefinitions) {
if (prop.Id.Equals("cmis:contentStreamHash")) {
return true;
}
}
} catch (CmisObjectNotFoundException) {
}
return false;
}