This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

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_OCS_ServerApi 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 Constructors

Creates a new instance of the DefaultRTCClassAttribute class.

Public Methods

The DefaultRTCClassAttribute class has the following public methods.

Method

Description

External .NET Framework Class Reference

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

External .NET Framework Class Reference

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

External .NET Framework Class Reference

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

External .NET Framework Class Reference

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.

External .NET Framework Class Reference

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

External .NET Framework Class Reference

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

External .NET Framework Class Reference

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 Communications Server 2007.

Namespace:Microsoft.Rtc.Sip Namespace

Assembly: ServerAgent (in ServerAgent.dll)