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

# SuperOffice.WebApi.Data.ConsentPerson

# <a id="SuperOffice_WebApi_Data_ConsentPerson" /> Class ConsentPerson

Namespace: [SuperOffice.WebApi.Data](SuperOffice.WebApi.Data.md)\
Assembly: SuperOffice.WebApi.dll

Carrier object for ConsentPerson.

```csharp theme={null}
public class ConsentPerson : Carrier
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Carrier](SuperOffice.WebApi.Data.Carrier.md) ←
[ConsentPerson](SuperOffice.WebApi.Data.ConsentPerson.md)

#### Inherited Members

[Carrier.TableRight](SuperOffice.WebApi.Data.Carrier.md#SuperOffice_WebApi_Data_Carrier_TableRight),
[Carrier.FieldProperties](SuperOffice.WebApi.Data.Carrier.md#SuperOffice_WebApi_Data_Carrier_FieldProperties),
[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring),
[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)),
[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)),
[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),
[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype),
[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone)

## Examples

Get ConsentPerson 123 using the WebApi client:
<pre><code class="lang-csharp">var configuration = new WebApiConfiguration(url);
var agent = new PersonAgent(configuration);
var consentPerson = agent.GetConsentPerson( 123 );</code></pre>

## Constructors

### <a id="SuperOffice_WebApi_Data_ConsentPerson__ctor" /> ConsentPerson()

Default constructor - defaults any enum props to 0.

```csharp theme={null}
public ConsentPerson()
```

## Properties

### <a id="SuperOffice_WebApi_Data_ConsentPerson_Comment" /> Comment

Comment regarding this specific consent

```csharp theme={null}
public virtual string Comment { get; set; }
```

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_ConsentPerson_ConsentPersonId" /> ConsentPersonId

ConsentPerson ID

```csharp theme={null}
public virtual int ConsentPersonId { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_ConsentPerson_ConsentPurpose" /> ConsentPurpose

The consent purpose

```csharp theme={null}
public virtual ConsentPurpose ConsentPurpose { get; set; }
```

#### Property Value

[ConsentPurpose](SuperOffice.WebApi.Data.ConsentPurpose.md)

### <a id="SuperOffice_WebApi_Data_ConsentPerson_ConsentSource" /> ConsentSource

The consent source

```csharp theme={null}
public virtual ConsentSource ConsentSource { get; set; }
```

#### Property Value

[ConsentSource](SuperOffice.WebApi.Data.ConsentSource.md)

### <a id="SuperOffice_WebApi_Data_ConsentPerson_LegalBase" /> LegalBase

The legal base

```csharp theme={null}
public virtual LegalBase LegalBase { get; set; }
```

#### Property Value

[LegalBase](SuperOffice.WebApi.Data.LegalBase.md)

### <a id="SuperOffice_WebApi_Data_ConsentPerson_PersonId" /> PersonId

Person ID

```csharp theme={null}
public virtual int PersonId { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

## See Also

[PersonAgent](SuperOffice.WebApi.Agents.PersonAgent.md)


## Related topics

- [SuperOffice.WebApi.Agents.PersonAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.PersonAgent.md)
- [SuperOffice.WebApi.Agents.IPersonAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IPersonAgent.md)
- [SuperOffice.WebApi.Data.ConsentInfo](/en/api/reference/webapi/SuperOffice.WebApi.Data.ConsentInfo.md)
- [ConsentPerson table](/en/database/tables/consentperson.md)
- [ConsentPurpose](/en/api/archive-providers/reference/consentpurpose.md)
- [Delete Consent Person](/en/api/reference/restful/agent/person_agent/delete-consent-person.md)
