SIP .NET Class Library
SIP .NET Class Library
SIP .NET
Independentsoft.Sip
Header Class
Header Constructor
Header Properties
Header Methods

# Header Class

This class contains header fields for Request and Response.
Inheritance Hierarchy
System
Object
Independentsoft.Sip
Header

Namespace: Independentsoft.Sip
Assembly: Independentsoft.Sip (in Independentsoft.Sip.dll) Version: 1.0.700.17927
Syntax
C#
VB
Copy

    public class Header : ICollection, IEnumerable

    Public Class Header
    	Implements ICollection, IEnumerable

The Header type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| Header | Initializes a new instance of the Header class.
| Header(String) | Initializes a new instance of the Header class from the specified string.

Top
Properties

| Name | Description
--- | --- | ---
| Count | Gets the number of elements in the Header.
| IsFixedSize | Gets a value indicating whether the collection has a fixed size.
| IsReadOnly | Gets a value indicating whether the Header is read-only.
| IsSynchronized | Gets a value indicating whether access to the Header is synchronized (thread-safe).
| Item String | Gets or sets the value associated with the specified header key. In C#, this property is the indexer for the Header class.
| Item StandardHeader | Gets or sets the value associated with the specified header key. In C#, this property is the indexer for the Header class.
| SyncRoot | Gets an object that can be used to synchronize access to the Header.

Top
Methods

| Name | Description
--- | --- | ---
| Add(String, String) | Adds new header field with specified header name and value.
| Add(StandardHeader, String) | Adds new header field with specified header name and value.
| Clear | Removes all elements from the Header.
| Contains(String) | Determines whether the Header contains a specific header key.
| Contains(StandardHeader) | Determines whether the Header contains a specific header key.
| ContainsKey(String) | Determines whether the Header contains a specific header key.
| ContainsKey(StandardHeader) | Determines whether the Header contains a specific header key.
| ContainsValue | Determines whether the Header contains a specific header value.
| CopyTo | Copies an Header array to the collection, starting at a specified target index.
| Equals | (Inherited from Object.)
| Finalize | (Inherited from Object.)
| GetEnumerator | Returns an IEnumerator that can iterate through the Header.
| GetHashCode | (Inherited from Object.)
| GetType | (Inherited from Object.)
| MemberwiseClone | (Inherited from Object.)
| Remove(String) | Removes the element with the specified header key from the Header.
| Remove(StandardHeader) | Removes the element with the specified header key from the Header.
| Set(String, String) | Sets value of the specified header field.
| Set(StandardHeader, String) | Sets value of the specified header field.
| ToString | Converts the value of this instance to its equivalent string representation. (Overrides Object ToString .)

Top
See Also

#### Reference

Independentsoft.Sip Namespace

Copyright 2023 Independentsoft

Send comments on this topic to support@independentsoft.de