ApplicationEndpoint.SetProxyInformation Method
Sets the information about the next hop proxy.
Namespace: Microsoft.Rtc.Collaboration
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub SetProxyInformation ( _
proxyHost As String, _
proxyPort As Integer _
)
'Usage
Dim instance As ApplicationEndpoint
Dim proxyHost As String
Dim proxyPort As Integer
instance.SetProxyInformation(proxyHost, _
proxyPort)
public void SetProxyInformation(
string proxyHost,
int proxyPort
)
Parameters
- proxyHost
Type: System.String
The proxy host to use as the first hop instead of a direct connection to the other endpoint.
- proxyPort
Type: System.Int32
The port to use for connecting to a proxy.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown if the supplied proxyHost is null. |
ArgumentException | Thrown if the supplied proxyHost is empty. |
ArgumentOutOfRangeException | Thrown if the supplied proxyPort is out of range. |
InvalidOperationException | Thrown if the endpoint is registered or auto-provisioned. |
Remarks
This is an advanced API to be used by applications capable of working with multiple next hop proxies. This API can be used if the applications want to change the next hop proxy information.