Class ChannelNumberAttribute
The CHANNEL-NUMBER attribute contains the number of the channel.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: FM.LiveSwitch.Stun.Turn
Assembly: FM.LiveSwitch.dll
Syntax
public class ChannelNumberAttribute : Attribute
Constructors
ChannelNumberAttribute(Int32)
Initializes a new instance of the ChannelNumberAttribute class.
Declaration
public ChannelNumberAttribute(int channelNumber)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | channelNumber | The channel number. |
Properties
ChannelNumber
Gets or sets the channel number.
Declaration
public int ChannelNumber { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
TypeValue
Gets the type value.
Declaration
public override int TypeValue { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Overrides
Methods
GetValueLength()
Gets the length of the attribute value.
Declaration
protected override int GetValueLength()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
ReadValueFrom(DataBuffer, Int32)
Initializes a new instance of the ChannelNumberAttribute class.
Declaration
public static ChannelNumberAttribute ReadValueFrom(DataBuffer buffer, int offset)
Parameters
Type | Name | Description |
---|---|---|
DataBuffer | buffer | The buffer. |
System.Int32 | offset | The offset. |
Returns
Type | Description |
---|---|
ChannelNumberAttribute |
ToString()
Returns a string that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents this instance. |
Overrides
System.Object.ToString()
WriteValueTo(DataBuffer, Int32)
Gets the value as a byte array.
Declaration
protected override void WriteValueTo(DataBuffer buffer, int offset)
Parameters
Type | Name | Description |
---|---|---|
DataBuffer | buffer | |
System.Int32 | offset |