Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Construct an instance of OleComponent. This overload will call FRegisterComponent automatically on construction.
Namespace: Microsoft.VisualStudio.PlatformUI.OleComponentSupport
Assembly: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'Declaration
Public Sub New ( _
manager As IOleComponentManager _
)
'Usage
Dim manager As IOleComponentManager
Dim instance As New OleComponent(manager)
public OleComponent(
IOleComponentManager manager
)
public:
OleComponent(
IOleComponentManager^ manager
)
new :
manager:IOleComponentManager -> OleComponent
public function OleComponent(
manager : IOleComponentManager
)
Parameters
- manager
Type: Microsoft.VisualStudio.OLE.Interop.IOleComponentManager
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | Throws this if is null. |
| ComponentRegistrationFailedException | Can throw this exception if manager returns FALSE (0) from FRegisterComponent. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.PlatformUI.OleComponentSupport Namespace