ENet Class Library for C#

Packet.ReferenceCount Property

Gets or sets the reference count. If you want to keep a packet around that you are giving to ENet, increment this. When you are finished with it, decrement this and call Dispose().

[Visual Basic]
Public Property ReferenceCount() As Integer
   Public Get
   End Get
   Public Set
   End Set
End Property
[C#]
public int ReferenceCount { public get; public set; }

Exceptions

Exception Type Condition
ArgumentOutOfRangeException The value may not be negative.
InvalidOperationException The packet is not initialized.

See Also

Packet Class | ENet Namespace