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
- 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