DefaultRTCClassAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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: Request, Response, ClientTransaction, or ServerTransaction.The DefaultRTCClassAttribute class is derived from the System.Attribute class.
public ref class DefaultRTCClassAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class)]
public class DefaultRTCClassAttribute : Attribute
Public Class DefaultRTCClassAttribute
Inherits Attribute
- Inheritance
-
DefaultRTCClassAttribute
- Attributes
Examples
[DefaultRTCClassAttribute]
public class MyServerTransaction: ServerTransaction {
internal string additionalState;
public MyServerTransaction() {
// Constructor logic here
// ...
Console.WriteLine ("MyServerTransaction created.");
}
}
Constructors
DefaultRTCClassAttribute() |
The DefaultRTCClassAttribute constructor creates a new instance of the DefaultRTCClassAttribute class. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for