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

# OrganizationUnit

> One of an assignment's organizational units, under a Type the customer configures.

```csharp
public sealed record OrganizationUnit : IEquatable<OrganizationUnit>
```

**Implements:** `IEquatable<OrganizationUnit>`

## Constructors

```csharp
public OrganizationUnit(bool IsPrimary, string Type, string Code, string Name)
```

One of an assignment's organizational units, under a `Type` the customer configures.

### Parameters

**IsPrimary** `bool` *required*

Whether this is the placement the assignment is anchored to, rather than an additional allocation. A source that keeps one organizational structure marks every unit primary.

**Type** `string` *required*

**Code** `string` *required*

**Name** `string` *required*

## Properties

**Code** `string` *required*

**IsPrimary** `bool` *required*

Whether this is the placement the assignment is anchored to, rather than an additional allocation. A source that keeps one organizational structure marks every unit primary.

**Name** `string` *required*

**Type** `string` *required*

## Methods

### Deconstruct()

```csharp
public void Deconstruct(out bool IsPrimary, out string Type, out string Code, out string Name)
```

#### Parameters

**IsPrimary** `bool` *required*

**Type** `string` *required*

**Code** `string` *required*

**Name** `string` *required*

### Equals()

```csharp
public bool Equals(OrganizationUnit? other)
```

#### Parameters

**other** `OrganizationUnit` *required*

#### Returns

`bool`

```csharp
public override bool Equals(object? obj)
```

#### Parameters

**obj** `object` *required*

#### Returns

`bool`

### GetHashCode()

```csharp
public override int GetHashCode()
```

#### Returns

`int`

### operator !=()

```csharp
public static bool operator !=(OrganizationUnit? left, OrganizationUnit? right)
```

#### Parameters

**left** `OrganizationUnit` *required*

**right** `OrganizationUnit` *required*

#### Returns

`bool`

### operator ==()

```csharp
public static bool operator ==(OrganizationUnit? left, OrganizationUnit? right)
```

#### Parameters

**left** `OrganizationUnit` *required*

**right** `OrganizationUnit` *required*

#### Returns

`bool`

### ToString()

```csharp
public override string ToString()
```

#### Returns

`string`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.