# SimConnect_UnsubscribeToCommBusEvent The **SimConnect\_UnsubscribeToCommBusEvent** function is used to unsubscribe the client from a communication (CommBus) event.   **C++** **C\#** ##### Syntax ``` cpp HRESULT SimConnect_UnsubscribeToCommBusEvent( HANDLE hSimConnect, SIMCONNECT_CLIENT_EVENT_ID EventID ); ```   ##### Parameters {{< table-wrapper >}} | Parameter | Description | Type | |---------------|---------------------------------------|---------| | *hSimConnect* | Handle to a SimConnect object. | Integer | | *EventID* | Specifies the ID of the client event. | Integer | {{< /table-wrapper >}}   ##### Return Values The function returns an **HRESULT**. Possible values include, but are not limited to, those in the following table. {{< table-wrapper >}} | Return value | Description | |--------------|-------------------------| | S\_OK | The function succeeded. | | E\_FAIL | The function failed. | {{< /table-wrapper >}}    ##### Syntax ``` cs void SimConnect::UnsubscribeToCommBusEvent( Enum EventID ); ```   ##### Parameters {{< table-wrapper >}} | Parameter | Description | Type | |-----------|----------------------------------------------------------------|------| | *EventID* | The ID with which the event has been registered on the client. | Enum | {{< /table-wrapper >}}   ##### Return Values N/A (use a try/catch to test for errors).     ##### Remarks N/A