Edit

Share via


SdpConnection.TrySet(String) Method

Definition

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.

public:
 bool TrySet(System::String ^ value);
public bool TrySet (string value);
member this.TrySet : string -> bool
Public Function TrySet (value As String) As Boolean

Parameters

value
String

The string value to set on the connection.

Returns

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

Applies to