OleComponent Constructor

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

‘선언
Public Sub New ( _
    manager As IOleComponentManager _
)
‘사용 방법
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

Exceptions

Exception Condition
ArgumentNullException

Throws this if is null.

ComponentRegistrationFailedException

Can throw this exception if manager returns FALSE (0) from FRegisterComponent.

.NET Framework Security

See Also

Reference

OleComponent Class

OleComponent Members

Microsoft.VisualStudio.PlatformUI.OleComponentSupport Namespace