|
ChannelResourceGcCause Property |
GC Cause code for a disconnected call if available.
Namespace:
VoiceElements.Client
Assembly:
VoiceElementsClient (in VoiceElementsClient.dll) Version: 8.6.1.1
Syntax public int GcCause { get; }
Public ReadOnly Property GcCause As Integer
Get
public:
property int GcCause {
int get ();
}
member GcCause : int with get
Property Value
Type:
Int32Remarks Examples
The example below shows a chunk of code that gets all of the possible
Cause Code properties and puts them into variables for logging when a
Disconnect Event arrives.
static void ChannelResource_Disconnected(object sender, DisconnectedEventArgs e)
{
int GcCode = e.ChannelResource.GcCause;
string GcMessage = e.ChannelResource.GcCauseMessage;
int GeneralCode = e.ChannelResource.GeneralCause;
string GeneralMessage = e.ChannelResource.GeneralCauseMessage;
}
Private Shared Sub ChannelResource_Disconnected(sender As Object, e As DisconnectedEventArgs)
Dim GcCode As Integer = e.ChannelResource.GcCause
Dim GcMessage As String = e.ChannelResource.GcCauseMessage
Dim GeneralCode As Integer = e.ChannelResource.GeneralCause
Dim GeneralMessage As String = e.ChannelResource.GeneralCauseMessage
End Sub
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also