SignalingHeader Constructor (String, String)
Initializes a new instance of SignalingHeader used by the application to add an extension header to a SIP message.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub New ( _
name As String, _
value As String _
)
'Usage
Dim name As String
Dim value As String
Dim instance As New SignalingHeader(name, value)
public SignalingHeader(
string name,
string value
)
Parameters
- name
Type: System.String
The name of the header.
- value
Type: System.String
The value of the header.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when name or value are passed as null. |
ArgumentException | Thrown when name or value parameters length exceeded the size limit for header name and value. |
MessageParsingException | Thrown if the name/value pair does not constitute a valid header. |