CmisSync.Lib.Cmis.ConvenienceExtenders.CmisConvenienceExtenders.IsContentStreamHashSupported C# (CSharp) 메소드

IsContentStreamHashSupported() 공개 정적인 메소드

Returns the hash of the content stream on the server.
public static IsContentStreamHashSupported ( this session ) : bool
session this
리턴 bool
        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;
        }