Sdílet prostřednictvím


OleComponent(IOleComponentManager, String) Constructor

Definition

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

diagnosticsName
String

Exceptions

Throws this if manager is null.

Can throw this exception if manager returns FALSE (0) from FRegisterComponent(IOleComponent, OLECRINFO[], UInt32).

Applies to