Share via


DefaultRTCClassAttribute

The DefaultRTCClassAttribute class indicates which derived class to use in place of a standard SIP class. For example, a custom class to handle SIP responses can be designated with this attribute, as long as the new response class inherits from the Response class. To use DefaultRTCClassAttribute, the custom class must inherit from one of the following classes:

The DefaultRTCClassAttribute class is derived from the System.Attribute class.

Public Constructors

The DefaultRTCClassAttribute class has the following public constructor.

Constructor Description
DefaultRTCClassAttribute()

Creates a new instance of the DefaultRTCClassAttribute class.

Public Methods

The DefaultRTCClassAttribute class has the following public methods.

Method Description
Equals(Object)

Inherited from System.Object. Determines whether the specified System.Object is equal to the current System.Object.

GetHashCode()

Inherited from System.Object. Returns the hash code for this instance.

GetType()

Inherited from System.Object. Gets the System.Type of the current instance.

IsDefaultAttribute()

Inherited from System.Attribute. When overridden in a derived class, returns an indication of whether the value of this instance is the default value for the derived class.

Match(Object)

Inherited from System.Attribute. When overridden in a derived class, returns a value indicating whether this instance equals a specified object.

ToString()

Inherited from System.Object. Returns a System.String that represents the current System.Object.

Public Properties

The DefaultRTCClassAttribute class has the following public property.

Property Description
TypeId Data type: Object
Access type: Read-only

Inherited from System.Attribute. When implemented in a derived class, gets a unique identifier for this attribute.

Example Code

The following code sample demonstrates how to set the DefaultRTCClassAttribute attribute on a type derived from ServerTransaction.

[DefaultRTCClassAttribute]
public class MyServerTransaction: ServerTransaction {

    internal string additionalState;

    public MyServerTransaction() {
        
        // Constructor logic here
        // ...
        Console.WriteLine ("MyServerTransaction created.");

    }

}

Requirements

Redistributable: Requires Microsoft Office Live Communications Server 2005.
Namespace: Microsoft.Rtc.Sip
Assembly: ServerAgent (in ServerAgent.dll)