如何判断一个类是 WSS 还是 MOSS 特定的?
如何判断 SharePoint 类是特定于 WSS 还是 MOSS?
例如,我可以仅在 MOSS 中使用 SPAudit 类吗?
How do I tell if a SharePoint class is specific to WSS or MOSS?
For example, can I use the SPAudit class in MOSS only?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我通过查看哪个 DLL 包含该类来做到这一点。
例如,大多数 SharePoint API 功能位于 Microsoft.SharePoint.dll(即 WSS)中。另一个例子是 Microsoft.SharePoint.Publishing.dll,它只是 MOSS。
I do it by looking at which DLL contains the class.
For example most SharePoint API functionality is located in the Microsoft.SharePoint.dll (which is WSS). Another example is the Microsoft.SharePoint.Publishing.dll which is MOSS only.
SPAudit 类适用于 WSS 和 MOSS,尽管用户界面仅在 MOSS 中可用。
就像 JD 所说的,看看 DLL。如果您的 API 需要 Microsoft.Office.*,那么它只是 MOSS。
看看这里使用代码检测 MOSS。
The SPAudit class works for WSS as well as MOSS, even though the user interface is available in MOSS only.
Like JD Said, have a look at the DLL. If your API requires Microsoft.Office.* then it is MOSS only.
Have a look here for detecting MOSS using code.