
# ISch_HarnessAssociatedPartsOwner interface

*No description yet.*

```csharp
public interface ISch_HarnessAssociatedPartsOwner
```

**Namespace:** SCH · **Assembly:** Altium.SDK.Interfaces

## Properties

| Property | Type | Access | Description |
| --- | --- | --- | --- |
| [AssociatedPart](#associatedpart) | [ISch_HarnessComponent](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_HarnessComponent.md) | get; set |  |
| [FirstAssociatedPart](#firstassociatedpart) | [ISch_HarnessComponent](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_HarnessComponent.md) | get; set |  |

### AssociatedPart

*No description yet.*

```csharp
ISch_HarnessComponent GetAssociatedPart(int argIndex);
bool SetAssociatedPart(int argIndex, ISch_HarnessComponent argPart);
```

**Type:** [ISch_HarnessComponent](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_HarnessComponent.md) · **Access:** read/write · **Index:** `argIndex` (`int`)

The accessors are extension methods of `ISch_HarnessAssociatedPartsOwnerHelper` (`using SCH;`).

### FirstAssociatedPart

*No description yet.*

```csharp
ISch_HarnessComponent GetFirstAssociatedPart();
bool SetFirstAssociatedPart(ISch_HarnessComponent argPart);
```

**Type:** [ISch_HarnessComponent](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_HarnessComponent.md) · **Access:** read/write

The accessors are extension methods of `ISch_HarnessAssociatedPartsOwnerHelper` (`using SCH;`).

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [AddAssociatedPart](#addassociatedpart) | `bool` |  |
| [GetAssociatedPartsCount](#getassociatedpartscount) | `int` |  |
| [RemoveAllAssociatedParts](#removeallassociatedparts) | `void` |  |
| [RemoveAssociatedPart](#removeassociatedpart) | `void` |  |

### AddAssociatedPart

*No description yet.*

```csharp
bool AddAssociatedPart(ISch_HarnessComponent argPart);
bool AddAssociatedPart(object argPart);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argPart` | [ISch_HarnessComponent](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_HarnessComponent.md) | value |

**Returns:** `bool`

The first overload is an extension method of `ISch_HarnessAssociatedPartsOwnerHelper` (`using SCH;`) with typed parameters; the second is declared by the interface.

### GetAssociatedPartsCount

*No description yet.*

```csharp
int GetAssociatedPartsCount();
```

**Returns:** `int`

### RemoveAllAssociatedParts

*No description yet.*

```csharp
void RemoveAllAssociatedParts();
```

**Returns:** nothing (`void`)

### RemoveAssociatedPart

*No description yet.*

```csharp
void RemoveAssociatedPart(int argIndex);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argIndex` | `int` | value |

**Returns:** nothing (`void`)
