Partager via


OleComponent.CreateHostedComponent Method

Creates a new OleComponent instance using Instance as the IOleComponentManager it needs to register itself.

Namespace:  Microsoft.VisualStudio.PlatformUI.OleComponentSupport
Assembly:  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

'Déclaration
Public Shared Function CreateHostedComponent As OleComponent
'Utilisation
Dim returnValue As OleComponent

returnValue = OleComponent.CreateHostedComponent()
public static OleComponent CreateHostedComponent()
public:
static OleComponent^ CreateHostedComponent()
static member CreateHostedComponent : unit -> OleComponent 
public static function CreateHostedComponent() : OleComponent

Return Value

Type: Microsoft.VisualStudio.PlatformUI.OleComponentSupport.OleComponent

.NET Framework Security

See Also

Reference

OleComponent Class

OleComponent Members

Microsoft.VisualStudio.PlatformUI.OleComponentSupport Namespace