CmisSync.Lib.SelectiveIgnore.CmisSelectiveIgnoreCapability.SupportsSelectiveIgnore C# (CSharp) Method

SupportsSelectiveIgnore() public static method

Determines if is server supports selective ignore feature.
public static SupportsSelectiveIgnore ( this session ) : bool
session this Cmis session.
return bool
        public static bool SupportsSelectiveIgnore(this ISession session) {
            try {
                var type = session.GetTypeDefinition("gds:sync");
                if (type == null) {
                    return false;
                }

                foreach (var prop in type.PropertyDefinitions) {
                    if (prop.Id.Equals("gds:ignoreDeviceIds")) {
                        return true;
                    }
                }
            } catch (CmisObjectNotFoundException) {
            }

            return false;
        }
    }
CmisSelectiveIgnoreCapability