DispatcherTimer 생성자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
DispatcherTimer 클래스의 새 인스턴스를 초기화합니다.
오버로드
| Name | Description |
|---|---|
| DispatcherTimer() |
DispatcherTimer 클래스의 새 인스턴스를 초기화합니다. |
| DispatcherTimer(DispatcherPriority) |
지정된 우선 순위에서 타이머 이벤트를 처리하는 클래스의 DispatcherTimer 새 인스턴스를 초기화합니다. |
| DispatcherTimer(DispatcherPriority, Dispatcher) |
지정된 우선 순위에서 실행되는 DispatcherTimer 클래스의 Dispatcher 새 인스턴스를 초기화합니다. |
| DispatcherTimer(TimeSpan, DispatcherPriority, EventHandler, Dispatcher) |
지정된 시간 간격, 우선 순위, 이벤트 처리기 및 DispatcherTimer를 사용하는 클래스의 Dispatcher 새 인스턴스를 초기화합니다. |
DispatcherTimer()
DispatcherTimer 클래스의 새 인스턴스를 초기화합니다.
public:
DispatcherTimer();
public DispatcherTimer();
Public Sub New ()
설명
DispatcherTimer 는 우선 순위에 따라 Dispatcher 현재 스레드에서 Background 실행됩니다. 다른 Dispatcher생성자를 지정하려면 다음 생성자를 DispatcherTimer.DispatcherTimer(DispatcherPriority, Dispatcher)사용합니다.
적용 대상
DispatcherTimer(DispatcherPriority)
지정된 우선 순위에서 타이머 이벤트를 처리하는 클래스의 DispatcherTimer 새 인스턴스를 초기화합니다.
public:
DispatcherTimer(System::Windows::Threading::DispatcherPriority priority);
public DispatcherTimer(System.Windows.Threading.DispatcherPriority priority);
new System.Windows.Threading.DispatcherTimer : System.Windows.Threading.DispatcherPriority -> System.Windows.Threading.DispatcherTimer
Public Sub New (priority As DispatcherPriority)
매개 변수
- priority
- DispatcherPriority
타이머를 호출할 우선 순위입니다.
설명
DispatcherTimer 는 현재 스레드에서 Dispatcher 실행됩니다. 다른 Dispatcher생성자를 지정하려면 다음 생성자를 DispatcherTimer(DispatcherPriority, Dispatcher)사용합니다.
적용 대상
DispatcherTimer(DispatcherPriority, Dispatcher)
지정된 우선 순위에서 실행되는 DispatcherTimer 클래스의 Dispatcher 새 인스턴스를 초기화합니다.
public:
DispatcherTimer(System::Windows::Threading::DispatcherPriority priority, System::Windows::Threading::Dispatcher ^ dispatcher);
public DispatcherTimer(System.Windows.Threading.DispatcherPriority priority, System.Windows.Threading.Dispatcher dispatcher);
new System.Windows.Threading.DispatcherTimer : System.Windows.Threading.DispatcherPriority * System.Windows.Threading.Dispatcher -> System.Windows.Threading.DispatcherTimer
Public Sub New (priority As DispatcherPriority, dispatcher As Dispatcher)
매개 변수
- priority
- DispatcherPriority
타이머를 호출할 우선 순위입니다.
- dispatcher
- Dispatcher
타이머가 연결된 디스패처입니다.
예외
dispatcher은 null입니다.
적용 대상
DispatcherTimer(TimeSpan, DispatcherPriority, EventHandler, Dispatcher)
지정된 시간 간격, 우선 순위, 이벤트 처리기 및 DispatcherTimer를 사용하는 클래스의 Dispatcher 새 인스턴스를 초기화합니다.
public:
DispatcherTimer(TimeSpan interval, System::Windows::Threading::DispatcherPriority priority, EventHandler ^ callback, System::Windows::Threading::Dispatcher ^ dispatcher);
public DispatcherTimer(TimeSpan interval, System.Windows.Threading.DispatcherPriority priority, EventHandler callback, System.Windows.Threading.Dispatcher dispatcher);
new System.Windows.Threading.DispatcherTimer : TimeSpan * System.Windows.Threading.DispatcherPriority * EventHandler * System.Windows.Threading.Dispatcher -> System.Windows.Threading.DispatcherTimer
Public Sub New (interval As TimeSpan, priority As DispatcherPriority, callback As EventHandler, dispatcher As Dispatcher)
매개 변수
- interval
- TimeSpan
틱 사이의 기간입니다.
- priority
- DispatcherPriority
타이머를 호출할 우선 순위입니다.
- callback
- EventHandler
이벤트가 발생할 때 Tick 호출할 이벤트 처리기입니다.
- dispatcher
- Dispatcher
타이머가 연결된 디스패처입니다.
예외
interval 가 0보다 작거나 Int32.MaxValue보다 큰 경우