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

Visual Basic (Declaration)
Public 
Function 
TrySet ( _
	
value 
As 
String _
) 
As 
Boolean
C#
public 
bool 
TrySet(
	
string 
value
)
Visual C++
public:
bool 
TrySet(
	
String^ 
value
)
JavaScript
function 
trySet(
value);

Parameters

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

Return Value

Returns true if the supplied value is valid and can be set.

See Also