Share via


PluginHostPackage.Initialize Method

Initializes the package.

Namespace:  Microsoft.TeamFoundation.Common
Assembly:  Microsoft.VisualStudio.TeamFoundation.Client (in Microsoft.VisualStudio.TeamFoundation.Client.dll)

Syntax

'Declaration
Protected Overrides Sub Initialize
'Usage
Me.Initialize()
protected override void Initialize()
protected:
virtual void Initialize() override
protected override function Initialize()

Exceptions

Exception Condition
[InvalidOperationException]

Thrown if there is no IServiceContainer service container for the current Type.

Remarks

For each ProvideServiceAttribute on the class of this instance, Initialize will register the service with the service container. Registering a service involves providing a Type of the service and a delegate that can be used to create an instance of the service.

.NET Framework Security

See Also

Reference

PluginHostPackage Class

PluginHostPackage Members

Microsoft.TeamFoundation.Common Namespace