Compartilhar via


Classe Event.Key

An SfcKey class for identification of an Event.

Hierarquia de herança

System.Object
  Microsoft.SqlServer.Management.Sdk.Sfc.SfcKey
    Microsoft.SqlServer.Management.XEvent.Event.Key

Namespace:  Microsoft.SqlServer.Management.XEvent
Assembly:  Microsoft.SqlServer.Management.XEvent (em Microsoft.SqlServer.Management.XEvent.dll)

Sintaxe

'Declaração
Public NotInheritable Class Key _
    Inherits SfcKey
'Uso
Dim instance As Event.Key
public sealed class Key : SfcKey
public ref class Key sealed : public SfcKey
[<SealedAttribute>]
type Key =  
    class 
        inherit SfcKey 
    end
public final class Key extends SfcKey

O tipo Event.Key expõe os membros a seguir.

Construtores

  Nome Descrição
Método público Event.Key() Initializes a new instance of Event.Key class.
Método público Event.Key(String) Initializes a new instance of Event.Key class from the name of the XEvent object.
Método público Event.Key(Event.Key) Initializes a new instance of Event.Key class from another Event.Key object.

Início

Propriedades

  Nome Descrição
Propriedade pública InstanceType Gets the type of the instance class associated with this key class. (Herdado de SfcKey.)
Propriedade pública Name Gets the name of the Event as string.

Início

Métodos

  Nome Descrição
Método público Equals(Object) Determines whether a Event.Key object is equal to another System.Object. (Substitui SfcKey.Equals(Object).)
Método público Equals(SfcKey) Determines whether an Key object is equal to an SfcKey object. (Substitui SfcKey.Equals(SfcKey).)
Método públicoMembro estático Equals(Object, Object) Determines whether two objects are equal.
Método público GetHashCode Gets the hash code of a Event.Key. (Substitui SfcKey.GetHashCode().)
Método público GetType (Herdado de Object.)
Método público GetUrnFragment Gets an element of an Urn object. (Substitui SfcKey.GetUrnFragment().)
Método público ToString Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. Returns a String value that is a sortable representation of the object that can be used in external comparers. (Herdado de SfcKey.)

Início

Operadores

  Nome Descrição
Operador públicoMembro estático Equality(Object, Event.Key) Determines whether a Event.Key object is equal to another System.Object.
Operador públicoMembro estático Equality(Event.Key, Event.Key) Determines whether two Event.Key objects are equal.
Operador públicoMembro estático Equality(Event.Key, Object) Determines whether a Event.Key object is equal to another System.Object.
Operador públicoMembro estático Inequality(Object, Event.Key) Determines whether a Event.Key object is not equal to another System.Object.
Operador públicoMembro estático Inequality(Event.Key, Event.Key) Determines whether two Event.Key objects are not equal.
Operador públicoMembro estático Inequality(Event.Key, Object) Determines whether a Event.Key object is not equal to another System.Object.

Início

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.

Consulte também

Referência

Namespace Microsoft.SqlServer.Management.XEvent