How do I tell if a class is WSS or MOSS specific?
Asked Answered
T

2

6

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?

Tabshey answered 15/2, 2010 at 15:7 Comment(0)
C
8

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.

Caliche answered 15/2, 2010 at 16:27 Comment(0)
B
3

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.

Bagnio answered 15/2, 2010 at 16:47 Comment(1)
If I could mark two answers... I would. +1 instead since JD was first. Thanks a lot for answering my SPAudit question. :)Tabshey

© 2022 - 2024 — McMap. All rights reserved.