CmisSync.Lib.Cmis.ConvenienceExtenders.CmisConvenienceExtenders.AreChangeEventsSupported C# (CSharp) Méthode

AreChangeEventsSupported() public static méthode

Detect whether the repository has the ChangeLog capability.
public static AreChangeEventsSupported ( this session ) : bool
session this The Cmis Session
Résultat bool
        public static bool AreChangeEventsSupported(this ISession session) {
            try {
                return session.RepositoryInfo.Capabilities.ChangesCapability == CapabilityChanges.All ||
                    session.RepositoryInfo.Capabilities.ChangesCapability == CapabilityChanges.ObjectIdsOnly;
            } catch (NullReferenceException) {
                return false;
            }
        }