Impersonate Method
The Impersonate method impersonates a user for all operations.
Sub Impersonate( _bstrUserNameAs String, _
bstrPasswordAs String, _
[lFlagsAs Long] _)[C++]
HRESULT Impersonate(
BSTRbstrUserName,
BSTRbstrPassword,
LONGlFlags);
[Visual Basic]
Parameters
- bstrUserName
String that contains the user name. - bstrPassword
String that contains the password. - lFlags
Not used.
Return Values
None.
Error Values
If an error is raised, Err.Number is set to one of the values documented on the Error Messages page.
[C++]
Parameters
- bstrUserName
[in] BSTR that contains the user name. - bstrPassword
[in] BSTR that contains the password. - lFlags
Not used.
Return Values
For a list of error messages returned by SharePoint Portal Server, see Error Messages.
Example
To see an example of the version control process, see the example in IKnowledgeVersion interface.