SdpConnection.TrySet Method

Sets the IPAddress property if a given string is a recognizable address, otherwise sets the HostName property. Strings that contain spaces, slashes, or control characters are not accepted.

Namespace:  Microsoft.Rtc.Signaling
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

Syntax

'Declaration
Public Function TrySet ( _
    value As String _
) As Boolean
'Usage
Dim instance As SdpConnection
Dim value As String
Dim returnValue As Boolean

returnValue = instance.TrySet(value)
public bool TrySet(
    string value
)

Parameters

  • value
    Type: System.String
    The string value to set on the connection.

Return Value

Type: System.Boolean
Returns true if the supplied value is valid and can be set.

See Also

Reference

SdpConnection Class

SdpConnection Members

Microsoft.Rtc.Signaling Namespace