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
serviceProvider
Type: System.IServiceProviderserviceProvider
.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
CommandExtensionRegistrar Class
Microsoft.VisualStudio.Modeling.Shell.ExtensionEnablement Namespace