Initializes OLE on the current thread.
[Visual Basic] Public Shared Sub OLERequired() [C#] public static void OLERequired(); [C++] public: static void OLERequired(); [JScript] public static function OLERequired();
Call this method before calling any Microsoft.Win32 method that requires OLE. This method first checks to see if OLE has already been initialized on the current thread. If not, it initializes the thread for OLE.
Note Unless a thread calls OLE methods directly, this method need not be called.
Application Class | Application Members | System.WinForms Namespace