Este artigo foi traduzido por máquina. Para visualizar o arquivo em inglês, marque a caixa de seleção Inglês. Você também pode exibir o texto Em inglês em uma janela pop-up, movendo o ponteiro do mouse sobre o texto.
Tradução
Inglês

Classe DispatcherObject

 

Representa um objeto associado a um Dispatcher.

Namespace:   System.Windows.Threading
Assembly:  WindowsBase (em WindowsBase.dll)


public abstract class DispatcherObject

NomeDescrição
System_CAPS_protmethodDispatcherObject()

Inicializa uma nova instância da classe DispatcherObject.

NomeDescrição
System_CAPS_pubpropertyDispatcher

Obtém o Dispatcher ao qual este DispatcherObject está associado.

NomeDescrição
System_CAPS_pubmethodCheckAccess()

Determina se o thread de chamada tem acesso a este DispatcherObject.

System_CAPS_pubmethodEquals(Object)

Verifica se o objeto especificado é igual ao objeto atual. (Herdado de Object.)

System_CAPS_protmethodFinalize()

Permite que um objeto tente liberar recursos e executar outras operações de limpeza antes que ele seja recuperado pela coleta de lixo. (Herdado de Object.)

System_CAPS_pubmethodGetHashCode()

Serve como a função de hash padrão.(Herdado de Object.)

System_CAPS_pubmethodGetType()

Obtém o Type da instância atual.(Herdado de Object.)

System_CAPS_protmethodMemberwiseClone()

Cria uma cópia superficial do Object atual.(Herdado de Object.)

System_CAPS_pubmethodToString()

Retorna uma string que representa o objeto atual.(Herdado de Object.)

System_CAPS_pubmethodVerifyAccess()

Impõe que o thread de chamada tenha acesso a este DispatcherObject.

Only the thread that the P:System.Windows.Threading.DispatcherObject.Dispatcher was created on may access the T:System.Windows.Threading.DispatcherObject directly. To access a T:System.Windows.Threading.DispatcherObject from a thread other than the thread the T:System.Windows.Threading.DispatcherObject was created on, call M:System.Windows.Threading.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority,System.Delegate) or M:System.Windows.Threading.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority,System.Delegate) on the T:System.Windows.Threading.Dispatcher the T:System.Windows.Threading.DispatcherObject is associated with.

Subclasses of T:System.Windows.Threading.DispatcherObject that need to enforce thread safety can do so by calling M:System.Windows.Threading.DispatcherObject.VerifyAccess on all public methods. This guarantees the calling thread is the thread that the T:System.Windows.Threading.DispatcherObject was created on.

A T:System.Windows.Threading.DispatcherObject cannot be independently instantiated; that is, all constructors are protected.

Objects that derive from T:System.Windows.Threading.DispatcherObject have thread affinity.

Objects that derive from T:System.Windows.Freezable are free-threaded when they are frozen. For more information, see the Freezable Objects Overview.

.NET Framework
Disponível desde 3.0

Any public static members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

This object can be accessed only from the thread on which it was created. Attempts to access it from other threads will throw an T:System.InvalidOperationException. M:System.Windows.Threading.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority,System.Delegate) or M:System.Windows.Threading.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority,System.Delegate) provide support for marshalling work to the correct thread.

Retornar ao início
Mostrar: