> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Method Instantiate<T>

Namespace: [Phoenix.PlugIns](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.PlugIns)\
Assembly: Phoenix.PlugIns.dll

## Instantiate\<T>(IServiceProvider, string)

Instantiates a new instance of the plug-in

```csharp theme={null}
public T Instantiate<T>(IServiceProvider serviceProvider, string relativeDir)

```

### Parameters

`serviceProvider` [IServiceProvider](https://learn.microsoft.com/dotnet/api/system.iserviceprovider)

The system service provider for dependency injection

`relativeDir` [string](https://learn.microsoft.com/dotnet/api/system.string)

The directory that this metadata was read from

### Returns

T

A new instance of type T

### Type Parameters

`T`

The interface type for the plug-in
