Class SIPToHeader
Class for handling a SIP To header
Inherited Members
Namespace: SipLib.Core
Assembly: SipLib.dll
Syntax
public class SIPToHeader
Remarks
The To header only has parameters, no headers. Parameters of from ...;name=value;name2=value2. Specific parameters: tag.
Constructors
| Edit this page View SourceSIPToHeader(string?, SIPURI, string?)
Constructor
Declaration
public SIPToHeader(string? toName, SIPURI toURI, string? toTag)
Parameters
Type | Name | Description |
---|---|---|
string | toName | Name field for the To header. Optional |
SIPURI | toURI | SIPURI to build the To header from |
string | toTag | To header tag. Optional initially. |
Properties
| Edit this page View SourceToName
Gets or sets the name field of the To header
Declaration
public string? ToName { get; set; }
Property Value
Type | Description |
---|---|
string |
ToParameters
Gets or sets the To header parameters
Declaration
public SIPParameters ToParameters { get; set; }
Property Value
Type | Description |
---|---|
SIPParameters |
ToTag
Gets or sets the To header tag value
Declaration
public string? ToTag { get; set; }
Property Value
Type | Description |
---|---|
string |
ToURI
Gets or sets the URI of the To header
Declaration
public SIPURI? ToURI { get; set; }
Property Value
Type | Description |
---|---|
SIPURI |
ToUserField
Gets or sets the SIPUserField for the To header
Declaration
public SIPUserField? ToUserField { get; set; }
Property Value
Type | Description |
---|---|
SIPUserField |
Methods
| Edit this page View SourceParseToHeader(string)
Parses a string into a SIPToHeader object.
Declaration
public static SIPToHeader ParseToHeader(string toHeaderStr)
Parameters
Type | Name | Description |
---|---|---|
string | toHeaderStr | Input string |
Returns
Type | Description |
---|---|
SIPToHeader | Returns a new SIPToHeader |
ToString()
Converts this SIPToHeader object into a header value string
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |