Authors Property

The Authors property specifies a list of authors for this folder.

Property Authors As Variant [C++]
Get method:
HRESULT get_Authors(VARIANT*pAuthors);
Put method:
HRESULT put_Authors(VARIANTvarAuthors);

[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 an author. For this property to be set, each array element must contain one user name in the form: "DOMAIN\username".

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:

  • pAuthors
    [out, retval] Pointer to a VARIANT that contains an array of VARIANTs. Each VARIANT in the array contains a BSTR that contains an author.

Put method:

  • varAuthors
    [in] VARIANT that contains an array of VARIANTs. Each VARIANT in the array contains a BSTR that contains an author. For this property to be set, each array element must contain one user name in the form: "DOMAIN\username".
Return Values

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

Remarks

The Authors property is only applicable to enhanced folders. It returns an empty list when called for a standard folder.

Example

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