문제

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.

도움이 되었습니까?

해결책

This is a bit nicer:

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

다른 팁

There is probably a more elegant way to do it, but now I am using this:

if ( repository.Capabilities.ChangesCapabilities.GetCmisValue().Equals("all") )
  { ... }
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top