NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Application.OLERequired

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();

Remarks

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.

See Also

Application Class | Application Members | System.WinForms Namespace