SIP .NET Class Library
SIP .NET Class Library
SIP .NET
Independentsoft.Sip.Sdp
MediaFormatCollection Class
MediaFormatCollection Constructor
MediaFormatCollection Properties
MediaFormatCollection Methods

# MediaFormatCollection Class

Represents a collection of media formats.
Inheritance Hierarchy
System
Object
Independentsoft.Sip.Sdp
MediaFormatCollection

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

    public class MediaFormatCollection : ICollection,
    	IEnumerable

    Public Class MediaFormatCollection
    	Implements ICollection, IEnumerable

The MediaFormatCollection type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| MediaFormatCollection | Initializes a new instance of the MediaFormatCollection class.

Top
Properties

| Name | Description
--- | --- | ---
| Count | Gets the number of elements in the MediaFormatCollection.
| Formats | Gets array of media formats.
| IsSynchronized | Gets a value indicating whether access to the MediaFormatCollection is synchronized (thread-safe).
| Item | Gets phone number associated with the specified position. In C#, this property is the indexer for the MediaFormatCollection class.
| SyncRoot | Gets an object that can be used to synchronize access to the MediaFormatCollection.

Top
Methods

| Name | Description
--- | --- | ---
| Add | Adds media format to the collection.
| Clear | Removes all elements from the MediaFormatCollection.
| CopyTo | Copies an MediaFormatCollection 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 MediaFormatCollection.
| GetHashCode | (Inherited from Object.)
| GetType | (Inherited from Object.)
| MemberwiseClone | (Inherited from Object.)
| Remove | Removes the specified media format from the collection, if it is present.
| ToString | Converts the value of this instance to its equivalent string representation. (Overrides Object ToString .)

Top
See Also

#### Reference

Independentsoft.Sip.Sdp Namespace

Copyright 2023 Independentsoft

Send comments on this topic to support@independentsoft.de