Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- 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.