EventPrivateKey EventPrivateKey EventPrivateKey EventPrivateKey Class

Definition

Provides unique identification for events whose handlers are stored into an internal hashtable.

public ref class EventPrivateKey
public class EventPrivateKey
type EventPrivateKey = class
Public Class EventPrivateKey
Inheritance
EventPrivateKeyEventPrivateKeyEventPrivateKeyEventPrivateKey

Remarks

Important

This type exists specifically so that compilers, build rules, or other enforcement mechanisms can verify that all event keys of this type are created exclusively by private static fields on the event-declaring class. Failure to make the event key private raises the possibility of event spoofing.

Constructors

EventPrivateKey() EventPrivateKey() EventPrivateKey() EventPrivateKey()

Initializes a new instance of the EventPrivateKey class.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to