Edit

Share via


Header Constructors

Definition

Overloads

Header()

The Header constructor initializes a new instance of the Header class without a specified type or value.

Header(Header+StandardHeaderType)

Creates a new header object with a specified standard header type.

Header(String)

Creates a new header object with a specified header type.

Header(Header+StandardHeaderType, String)

Creates a new header object with a specified standard header type and value.

Header(String, String)

The Header constructor creates a new instance of the Header class of the specified SIP header type, with the specified value.

Header()

The Header constructor initializes a new instance of the Header class without a specified type or value.

protected public:
 Header();
protected internal Header ();
Protected Friend Sub New ()

Applies to

Header(Header+StandardHeaderType)

Creates a new header object with a specified standard header type.

public:
 Header(Microsoft::Rtc::Sip::Header::StandardHeaderType standardType);
public Header (Microsoft.Rtc.Sip.Header.StandardHeaderType standardType);
Public Sub New (standardType As Header.StandardHeaderType)

Parameters

Applies to

Header(String)

Creates a new header object with a specified header type.

public:
 Header(System::String ^ type);
public Header (string type);
Public Sub New (type As String)

Parameters

type
String

Remarks

This constructor creates a header with an empty value that should be populated.

Applies to

Header(Header+StandardHeaderType, String)

Creates a new header object with a specified standard header type and value.

public:
 Header(Microsoft::Rtc::Sip::Header::StandardHeaderType standardType, System::String ^ value);
public Header (Microsoft.Rtc.Sip.Header.StandardHeaderType standardType, string value);
Public Sub New (standardType As Header.StandardHeaderType, value As String)

Parameters

value
String

Applies to

Header(String, String)

The Header constructor creates a new instance of the Header class of the specified SIP header type, with the specified value.

public:
 Header(System::String ^ type, System::String ^ value);
public Header (string type, string value);
Public Sub New (type As String, value As String)

Parameters

type
String
value
String

Applies to