Share via


GetObject Method

The GetObject method gets the object identified by the specified Uniform Resource Identifier (URI).

Function GetObject( _pvtURIsAs Variant _)As Variant [C++]
HRESULT GetObject(
VARIANT* pvtURIs, 
    VARIANT*pObjects);

[Visual Basic]

Parameters
  • pvtURIs
    Variant that contains an array of Variants. Each Variant in the array contains a String that contains a Uniform Resource Identifier (URI) of one of the desired objects.
Return Values

This method returns an object. The type of the returned object depends on the content class of the item. For example, a document item is returned in a KnowledgeDocument object, but a content class item is returned in a KnowledgeContentClass object.

Error Values

If an error is raised, Err.Number is set to one of the values documented on the Error Messages page.

[C++]

Parameters
  • pvtURIs
    [in] Pointer to a VARIANT that contains an array of VARIANTs. Each VARIANT in the array contains a BSTR that contains the Uniform Resource Identifier (URI) of one of the desired objects.
  • pObjects
    [out, retval] Pointer to an object. The type of the returned object depends on the content class of the item. For example, a document item is returned in a KnowledgeDocument object, but a content class item is returned in a KnowledgeContentClass object.
Return Values

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