Share via


CommandExtensionRegistrar.Initialize Method

Assigns a unique commandId to each imported command extension and registers the command with the MenuService. Only commandExtensions whose metadata match the MetadataFilter are registered.

Namespace:  Microsoft.VisualStudio.Modeling.Shell.ExtensionEnablement
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)

Syntax

'Declaration
Public Overridable Sub Initialize ( _
    serviceProvider As IServiceProvider _
)
public virtual void Initialize(
    IServiceProvider serviceProvider
)
public:
virtual void Initialize(
    IServiceProvider^ serviceProvider
)
abstract Initialize : 
        serviceProvider:IServiceProvider -> unit  
override Initialize : 
        serviceProvider:IServiceProvider -> unit
public function Initialize(
    serviceProvider : IServiceProvider
)

Parameters

.NET Framework Security

See Also

Reference

CommandExtensionRegistrar Class

Microsoft.VisualStudio.Modeling.Shell.ExtensionEnablement Namespace