Share via


Deregister and Disable a Profile

The following code example illustrates how to deregister and disable a profile contained in the list of enabled profiles. The operations in the Initialize RTC and Create and Enable a Profile code examples must be performed before using this example.

Note  This example does not contain error checking or releases appropriate for real code.

C++ Code Example

hr = pIRTCClientProvisioning->DisableProfile(pIRTCProfile);

// If (hr != S_OK), process the error here. 

Visual Basic Code Example

' Set the error handling routine here. 
' On Error GoTo MyErrorRoutine 

'Disable and deregister a profile.
Call g_objProvisioning.DisableProfile(g_objProfile)