# ITargetHolder Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.invocation.itargetholder/)

## GetComponent(Type) {#getcomponent-system-type-01233e25}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.invocation.itargetholder/methods/getcomponent-system-type-01233e25/)

```csharp
public abstract object? GetComponent(Type componentType)
```

Gets the component with the specified type.

### Parameters

- `componentType` (`Type`): The component type.

### Returns

The component with the specified type.

## GetTarget {#gettarget-2b8bb15a}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.invocation.itargetholder/methods/gettarget-2b8bb15a/)

```csharp
public abstract object? GetTarget()
```

Gets the target instance.

### Returns

The target.
