GetURI Method
The GetURI method gets the Uniform Resource Identifier (URI) of the specified object model name.
Function GetURI( _bstrObjectModelNameAs String _)As String[C++]
HRESULT GetURI(
BSTRbstrObjectModelName,
BSTR*pbstrURI);
[Visual Basic]
Parameters
- bstrObjectModelName
String that contains the friendly name for the object. For example, GetURI(Title) returns "urn:schemas-microsoft-com:office:office#Title".
Return Values
This method returns a String that contains the URI of the specified 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
- bstrObjectModelName
[in] BSTR that contains the friendly name for the object. For example, GetURI(Title) returns "urn:schemas-microsoft-com:office:office#Title". - pbstrURI
[out, retval] Pointer to a BSTR that contains the URI of the specified object.
Return Values
For a list of error messages returned by SharePoint Portal Server, see Error Messages.