Share via


IProfileService2::Unbind Method

Use this method to clear the credentials that are used to access ProfileObject objects in the underlying Profiles store.

HRESULT IProfileService::Unbind(
);
Sub Unbind(
)

Parameters

None.

Return Value

[C++]

This method returns an HRESULT indicating whether it completed successfully. See the Error Values section for more details.

[Visual Basic]

None.

Error Values

The Errors property stores the collection of errors encountered in the last Profiles resource operation. For more information, see IProfileService::get_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

Other Resources

ProfileService Object

IProfileService2::BindAs Method