Application.OleRequired 메서드

정의

현재 스레드의 OLE를 초기화합니다.

public:
 static System::Threading::ApartmentState OleRequired();
public static System.Threading.ApartmentState OleRequired ();
static member OleRequired : unit -> System.Threading.ApartmentState
Public Shared Function OleRequired () As ApartmentState

반환

ApartmentState

ApartmentState 값 중 하나입니다.

설명

OLE가 필요한 메서드를 Microsoft.Win32 호출하기 전에 이 메서드를 호출합니다. OleRequired 먼저 OLE가 현재 스레드에서 초기화되었는지 확인합니다. 그렇지 않은 경우 OLE에 대한 스레드를 초기화합니다.

참고

스레드가 OLE 메서드를 직접 호출하지 않는 한 이 메서드를 호출할 필요가 없습니다.

적용 대상