共用方式為


CommandExtensionRegistrar.Initialize(IServiceProvider) Method

Definition

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.

public:
 virtual void Initialize(IServiceProvider ^ serviceProvider);
public virtual void Initialize (IServiceProvider serviceProvider);
abstract member Initialize : IServiceProvider -> unit
override this.Initialize : IServiceProvider -> unit
Public Overridable Sub Initialize (serviceProvider As IServiceProvider)

Parameters

serviceProvider
IServiceProvider

serviceProvider

Applies to