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

# ScimOperation

> One operation of a SCIM patch.

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

**Implements:** `IEquatable<ScimOperation>`

## Constructors

```csharp
public ScimOperation(string Op, string? Path, object? Value = null)
```

One operation of a SCIM patch.

### Parameters

**Op** `string` *required*

The operation: add, replace, or remove.

**Path** `string` *required*

The attribute it changes, if any.

**Value** `object`

What the operation writes.

## Properties

**Op** `string` *required*

The operation: add, replace, or remove.

**Path** `string`

The attribute it changes, if any.

**Value** `object`

What the operation writes.

## Methods

### Add()

```csharp
public static ScimOperation Add(object value)
```

Adds each attribute the value names.

#### Parameters

**value** `object` *required*

#### Returns

`ScimOperation`

```csharp
public static ScimOperation Add(string path, object value)
```

Adds a value at a path.

#### Parameters

**path** `string` *required*

**value** `object` *required*

#### Returns

`ScimOperation`

### Deconstruct()

```csharp
public void Deconstruct(out string Op, out string? Path, out object? Value)
```

#### Parameters

**Op** `string` *required*

**Path** `string` *required*

**Value** `object` *required*

### Equals()

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

#### Parameters

**other** `ScimOperation` *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 !=(ScimOperation? left, ScimOperation? right)
```

#### Parameters

**left** `ScimOperation` *required*

**right** `ScimOperation` *required*

#### Returns

`bool`

### operator ==()

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

#### Parameters

**left** `ScimOperation` *required*

**right** `ScimOperation` *required*

#### Returns

`bool`

### Remove()

```csharp
public static ScimOperation Remove(string path)
```

Removes the attribute at a path.

#### Parameters

**path** `string` *required*

#### Returns

`ScimOperation`

```csharp
public static ScimOperation Remove(string path, object value)
```

Removes a value at a path.

#### Parameters

**path** `string` *required*

**value** `object` *required*

#### Returns

`ScimOperation`

### Replace()

```csharp
public static ScimOperation Replace(object value)
```

Sets each attribute the value names.

#### Parameters

**value** `object` *required*

#### Returns

`ScimOperation`

```csharp
public static ScimOperation Replace(string path, object? value)
```

Sets a path, or removes it.

#### Parameters

**path** `string` *required*

**value** `object` *required*

#### Returns

`ScimOperation`

### ToString()

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

#### Returns

`string`


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