Dela via


EventToken Structure

[A] lightweight reference to an event in a chain that can be stored without holding a reference to the event or chain.

Namespace:  Microsoft.VisualStudio.IntelliTrace
Assembly:  Microsoft.VisualStudio.IntelliTrace (in Microsoft.VisualStudio.IntelliTrace.dll)

Syntax

'Declaration
Public Structure EventToken
public struct EventToken
public value class EventToken
[<Sealed>]
type EventToken =  struct end
JScript supports the use of structures, but not the declaration of new ones.

The EventToken type exposes the following members.

Constructors

  Name Description
Public method EventToken Initializes a new instance of EventToken

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current EventToken. (Overrides ValueType.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Gets a hash code for this EventToken. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Converts the value of the current EventToken object to a string. (Overrides ValueType.ToString().)

Top

Operators

  Name Description
Public operatorStatic member Equality Determines whether two EventTokens are considered equal.
Public operatorStatic member Explicit(Int64 to EventToken)
Public operatorStatic member Explicit(EventToken to Int64)
Public operatorStatic member Inequality Determines whether two EventTokens are considered not equal.

Top

Fields

  Name Description
Public fieldStatic member Zero Represents the zero token. This field is read-only.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.IntelliTrace Namespace