ExpectedContentClass Property

The ExpectedContentClass property contains the expected content classes for items in the folder. If this property is empty, items of any content class are allowed in the folder.

Property ExpectedContentClass As Variant [C++]
Get method:
HRESULT get_ExpectedContentClass(VARIANT*pExpectedContentClass);
Put method:
HRESULT put_ExpectedContentClass(VARIANTvarExpectedContentClass);

[Visual Basic]

Parameters

None.

Return Values

This property returns a Variant that contains an array of Variants. Each Variant in the array contains a String that contains the Uniform Resource Identifiers (URI) of content class definitions.

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:

  • pExpectedContentClass
    [out, retval] Pointer to a VARIANT that contains an array of VARIANTs. Each VARIANT in the array contains a BSTR that contains the Uniform Resource Identifiers (URI) of content class definitions.

Put method:

  • varExpectedContentClass
    [in] VARIANT that contains an array of VARIANTs. Each VARIANT in the array contains a BSTR that contains the URIs of content class definitions.
Return Values

For a list of error messages returned by SharePoint Portal Server, see Error Messages.

Example

To see this property in a fuller context, see Document Management Object Model Sample.