ContentClass Property
The ContentClass property contains the Uniform Resource Identifier (URI) of the content class that defines the properties for this object.
Property ContentClass As String[C++]
Get method:
HRESULT get_ContentClass(BSTR*pContentClass);
Put method:
HRESULT put_ContentClass(BSTRvarContentClass);
[Visual Basic]
Parameters
None.
Return Values
This property returns a String that contains the URI of the content class. A URI uniquely identifies the definitions of the content class of the item. For example, urn:content-classes:knowledgefolder is the expected property value for some folders. ContentClass corresponds to the DAV:contentclass property.
Error Values
If an error is raised, Err.Number is set to one of the values documented on the Error Messages page.
[C++]
Parameters
Get method:
- pContentClass
[out, retval] Pointer to a BSTR that contains the URI of the content class. A URI uniquely identifies the definitions of the content class of the item. For example, urn:content-classes:knowledgefolder is the expected property value for some folders. ContentClass corresponds to the DAV:contentclass property.
Put method:
- varContentClass
[in] BSTR that contains the URI of the content class.
Return Values
For a list of error messages returned by SharePoint Portal Server, see Error Messages.
Remarks
Use the ContentClass property to convert a standard folder to an enhanced folder or an enhanced folder to a standard folder.
Example
To see this property in a fuller context, see Document Management Object Model Sample.