[This is preliminary documentation and is subject to change.]
Disconnects the agent from this zone.
| C# | Visual Basic | Visual C++ |
void Disconnect( ProvisioningFlags flags )
Sub Disconnect ( _ flags As ProvisioningFlags _ )
void Disconnect ( ProvisioningFlags flags )
- flags (ProvisioningFlags)
Resources held by the Class Framework, including the Agent Local Queue,
are closed. To ensure these resources are properly closed, agents should
disconnect from zones even when not planning on sending a
CopyC# provisioning message.
Provisioning messages are sent as follows:
<
SIF_Unregister>-
If the agent is using Adk-managed provisioning, a
CopyC#message is sent to the ZIS when the AdkFlags.PROV_UNREGISTER flag is specified. When Adk-managed provisioning is disabled, no messages are sent to the zone.< SIF_Unregister> - If Agent-managed provisioning is enabled, the flags flags have no affect. The agent must explicitly call the sifUnregister method to manually send those message to the zone.
- If ZIS-managed provisioning is enabled, no provisioning messages are sent by the agent regardless of the flags used and the methods are called.
| Exception | Condition |
|---|---|
| AdkException | is thrown if there is an error sending a
<SIF_Unregister> |