|
ChannelResourcePortIndexer Property |
The one based index of this channel on the server.
Namespace:
VoiceElements.Client
Assembly:
VoiceElementsClient (in VoiceElementsClient.dll) Version: 8.6.1.1
Syntax public int PortIndexer { get; }
Public ReadOnly Property PortIndexer As Integer
Get
public:
property int PortIndexer {
int get ();
}
member PortIndexer : int with get
Property Value
Type:
Int32Remarks
You would typically only use this with a dedicated server for which you wanted several applications to use your server and manage ports within each application. Generally, you will not care or need to know what port number you are using.
Tip: You can Use This for a Unique ID
You may want to use this as a unique way to create an ID for your call. Try something like Line + PortIndexer + DateTime.GetDate as a unique ID string.
Examples
The example below shows a simple retreival of a channel and then getting the port ID and putting it in a variable and returning it for whatever use required.
public int GetMyPort()
{
TelephonyServer m_TelephonyServer = new TelephonyServer();
ChannelResource m_ChannelResource = m_TelephonyServer.GetChannel();
int MyPortNumber = m_ChannelResource.PortIndexer;
return MyPortNumber;
}
Public Function GetMyPort() As Integer
Dim m_TelephonyServer As New TelephonyServer()
Dim m_ChannelResource As ChannelResource = m_TelephonyServer.GetChannel()
Dim MyPortNumber As Integer = m_ChannelResource.PortIndexer
Return MyPortNumber
End Function
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