Back to product page

Tag property


Tag for misc usage.

Type

Object.

Syntax

  • C#
  • C++
  • VB.NET
void devP2P.SetTag(IntPtr Handle, object Value);
The Tag(Handle,value) syntax has these parts:
HandleReference to the devP2P instance.
valueObject that holds your data.

object devP2P.GetTag(IntPtr Handle);
The Tag(Handle) syntax has these parts:
HandleReference to the devP2P instance.
Return valueObject that holds your data.

void *Tag = value;
The Tag(value) syntax has these parts:
valuePointer to your own custom data.

Sub P2P_SetTag(ByVal Handle As IntPtr, ByVal Value As Object)
The Tag(Handle,value) syntax has these parts:
HandleReference to the devP2P instance.
valueObject that holds your data.

Function P2P_GetTag(ByVal Handle As IntPtr) As Object
The Tag(Handle) syntax has these parts:
HandleReference to the devP2P instance.
Return valueObject that holds your data.

Remarks

You can use this property to store pointer to your own custom data that will be kept by devP2P. devP2P will not interfere with this value in any way (it will not, for example, try to free that memory).

Platforms

Windows
Mac OSX
Linux
BSD