Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用OpenCMIS(或dotcmis),从存储库中获取 Repository 对象后,如何检查它是否具有特定的能力?
例如,CapabilityChanges 是否设置为all.
all
这更好一点:
if ( repository.Capabilities.ChangesCapabilities == CapabilityChanges.All ) { ... }
可能有一种更优雅的方式来做到这一点,但现在我正在使用这个:
if ( repository.Capabilities.ChangesCapabilities.GetCmisValue().Equals("all") ) { ... }