DispatcherProcessingDisabled DispatcherProcessingDisabled DispatcherProcessingDisabled DispatcherProcessingDisabled Struct

정의

비활성 상태일 때 디스패처를 나타내며 디스패처 처리를 다시 활성화할 수 있도록 합니다.Represents the Dispatcher when it is in a disable state and provides a means to re-enable dispatcher processing.

public value class DispatcherProcessingDisabled : IDisposable
public struct DispatcherProcessingDisabled : IDisposable
type DispatcherProcessingDisabled = struct
    interface IDisposable
Public Structure DispatcherProcessingDisabled
Implements IDisposable
상속
DispatcherProcessingDisabledDispatcherProcessingDisabledDispatcherProcessingDisabledDispatcherProcessingDisabled
구현

예제

다음 예제에서는 디스패처 처리를 사용 하지 않도록 설정 하 고 다시 디스패처 처리를 사용 하도록 설정 하는 방법을 보여 줍니다.The following example shows how to disable dispatcher processing and re-enable dispatcher processing. DisableProcessing 호출 되는 를 사용 하 여 문입니다.DisableProcessing is called in a using statement. DisableProcessing 반환을 DispatcherProcessingDisabled 때 삭제 된 개체와 사용 되는 구조는 를 사용 하 여 완료 차단 합니다.DisableProcessing returns a DispatcherProcessingDisabled structure which is used as the object to be disposed when the using block finishes. 호출 DisposeDispatcherProcessingDisabled 구조 디스패처 처리를 다시 설정 합니다.Calling Dispose on the DispatcherProcessingDisabled structure re-enables dispatcher processing.

// The Dispose() method is called at the end of the using statement.
// Calling Dispose on the DispatcherProcessingDisabled structure, 
// which is returned from the call to DisableProcessing, will
// re-enalbe Dispatcher processing.
using (Dispatcher.DisableProcessing())
{
    // Do work while the dispatcher processing is disabled.
    Thread.Sleep(2000);
}
' The Dispose() method is called at the end of the using statement.
' Calling Dispose on the DispatcherProcessingDisabled structure, 
' which is returned from the call to DisableProcessing, will
' re-enable Dispatcher processing.
Using Dispatcher.DisableProcessing()
    ' Do work while the dispatcher processing is disabled.
    Thread.Sleep(2000)
End Using

설명

DisableProcessing 반환 된 DispatcherProcessingDisabled 호출 될 때 개체입니다.DisableProcessing returns a DispatcherProcessingDisabled object when it is called.

디스패처 처리를 비활성화는 관련 되지 않은 재입력 가능성을 제거 하기 위한 고급 메서드입니다.Disabling dispatcher processing is an advanced method that is intended to eliminate the chance of unrelated reentrancy.

처리를 사용 하지 않도록 설정의 효과 다음과 같습니다.The effects of disabling processing are as follows:

  • CLR 잠금 메시지를 내부적으로 펌프 되지 됩니다.CLR locks will not pump messages internally.

  • DispatcherFrame 개체는 푸시할 수 없습니다.DispatcherFrame objects are not allowed to be pushed.

  • 메시지 처리를 허용 되지 않습니다.Message processing is not permitted.

호출 DisposeDispatcherProcessingDisabled 개체 디스패처 처리를 다시 활성화 됩니다.Calling Dispose on the DispatcherProcessingDisabled object will re-enable dispatcher processing.

메서드

Dispose() Dispose() Dispose() Dispose()

디스패처 처리를 다시 활성화합니다.Re-enables dispatcher processing.

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

지정된 DispatcherProcessingDisabled 개체가 이 DispatcherProcessingDisabled 개체와 같은지 여부를 확인합니다.Determines whether the specified DispatcherProcessingDisabled object is equal to this DispatcherProcessingDisabled object.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

이 인스턴스의 해시 코드를 가져옵니다.Gets a hash code for this instance.

연산자

Equality(DispatcherProcessingDisabled, DispatcherProcessingDisabled) Equality(DispatcherProcessingDisabled, DispatcherProcessingDisabled) Equality(DispatcherProcessingDisabled, DispatcherProcessingDisabled) Equality(DispatcherProcessingDisabled, DispatcherProcessingDisabled)

DispatcherProcessingDisabled 개체가 서로 같은지 확인합니다.Determines whether two DispatcherProcessingDisabled objects are equal.

Inequality(DispatcherProcessingDisabled, DispatcherProcessingDisabled) Inequality(DispatcherProcessingDisabled, DispatcherProcessingDisabled) Inequality(DispatcherProcessingDisabled, DispatcherProcessingDisabled) Inequality(DispatcherProcessingDisabled, DispatcherProcessingDisabled)

두 개의 DispatcherProcessingDisabled 개체가 같은지 여부를 확인합니다.Determines whether two DispatcherProcessingDisabled objects are not equal.

적용 대상

추가 정보