IProfileService2::Unbind Method [C++]
Use this method to clear the credentials that are used to access ProfileObject objects in the underlying Profiles store.
Definition
[C++]
HRESULT IProfileService::Unbind();
[Visual Basic]
Sub Unbind()
Parameters
None.
Return Values
[C++] This method returns an HRESULT indicating whether it completed successfully. See the Error Values section for more details.
[Visual Basic] None.
Error Values
[C++] The Errors property stores the collection of errors encountered in the last Profiles resource operation. For more information, see IProfileService::get_Errors.
[Visual Basic] The Errors property stores the collection of errors encountered in the last Profiles resource operation. For more information, see ProfileService.Errors.
Remarks
This method clears the credentials used to access ProfileObject objects in the underlying store. Any new profiles or modifications will not be bound to a specific user. Use this method to gain access to existing ProfileObject objects that are not bound to a specific user.
Use the Bind method to set the credentials to access ProfileObject objects that are bound to a specific user.
Call the Initialize method before you use this ProfileService method.
See Also
[Visual Basic]ProfileService Object
[Visual Basic]ProfileService.BindAs
Copyright © 2005 Microsoft Corporation.
All rights reserved.