Edit

Share via


SdpConnection Class

Definition

Contains either an IP address or a hostname found in the SDP.

public ref class SdpConnection
public class SdpConnection
type SdpConnection = class
Public Class SdpConnection
Inheritance
SdpConnection

Constructors

SdpConnection()

Initializes a new instance of the SdpConnection class.

SdpConnection(IPAddress)

Initializes a new instance of the SdpConnection class.

SdpConnection(SdpConnection)

Initializes a new instance of the SdpConnection class.

Properties

HostName

Gets or sets the FQDN of the connection. This property will return String.Emtpy if an IP address is present in the SDP. If both and IPAddress and HostName are set, then the HostName is used when serializing.

HostNameIPVersion

Gets or sets the address family to use if a hostname is specified rather than an IP address. The family found in the IPAddress instance is used, if the IPAddress property is not null. This value defaults to InterNetwork (IP4).

IPAddress

Gets or sets the IP address unless a HostName is supplied. This property may be null.

IsSet

Gets true if the connection has been assigned a value.

Methods

Reset(IPAddress)

Sets default values for the connection instance.

Set(String)

Sets the IPAddress property if the given string is a recognizable address, otherwise sets the HostName property.

ToString()

Returns a string representation of the SdpConnection instance. This function is useful for tracing or debugging.

TrySet(String)

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.

Applies to