OleComponent(IOleComponentManager, String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Construct an instance of OleComponent. This overload will call FRegisterComponent(IOleComponent, OLECRINFO[], UInt32) automatically on construction.
OleComponent(Microsoft::VisualStudio::OLE::Interop::IOleComponentManager const & manager, std::wstring const & diagnosticsName = null);
public OleComponent (Microsoft.VisualStudio.OLE.Interop.IOleComponentManager manager, string diagnosticsName = default);
new Microsoft.VisualStudio.PlatformUI.OleComponentSupport.OleComponent : Microsoft.VisualStudio.OLE.Interop.IOleComponentManager * string -> Microsoft.VisualStudio.PlatformUI.OleComponentSupport.OleComponent
Public Sub New (manager As IOleComponentManager, Optional diagnosticsName As String = Nothing)
Parameters
- manager
- IOleComponentManager
- diagnosticsName
- String
Exceptions
Throws this if manager
is null.
Can throw this exception if manager
returns FALSE (0) from FRegisterComponent(IOleComponent, OLECRINFO[], UInt32).