cmisdotcmisopencmis

OpenCMIS/dotcmis: How to find whether a server has a particular capability?


Using OpenCMIS (or dotcmis), after getting a Repository object from a repository, how to check whether it has a particular capability?

For instance, whether CapabilityChanges is set to all.


Solution

  • This is a bit nicer:

    if ( repository.Capabilities.ChangesCapabilities == CapabilityChanges.All ) { ... }