> ## 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 OpenLocalEditSessionForComponentAsync

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

## OpenLocalEditSessionForComponentAsync(IHarnessRunnerSession)

Opens up the pacz for the given IHarnessRunnerSession for editing locally. Typically
used to create metadata editors in the main OEM UI. No IHarnessBuilderUISession may be
open on this runner when calling this method.

```csharp theme={null}
Task<IHarnessLocalEditSession> OpenLocalEditSessionForComponentAsync(IHarnessRunnerSession session)

```

### Parameters

`session` [IHarnessRunnerSession](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentAPI.IHarnessRunnerSession)

The session to instantiate a local edit session for. The session
must have been created by this client object. It is illegal to call this function more
than once without calling Dispose on the returned IHarnessLocalEditSession first.

### Returns

[Task](https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1)\<[IHarnessLocalEditSession](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentAPI.IHarnessLocalEditSession)>

A task that returns a new IHarnessLocalEditSession object

### Exceptions

[InvalidOperationException](https://learn.microsoft.com/dotnet/api/system.invalidoperationexception)

If a builder or local edit session
is already open for the given runner session
