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

# <a id="SuperOffice_WebApi_Data_ConsentInfo" /> Class ConsentInfo

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

Carrier object for ConsentInfo.
Consent information for a give person. Consents are for a particular Purpose, and may be withdrawn (see LegalBase).

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

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Carrier](SuperOffice.WebApi.Data.Carrier.md) ←
[ConsentInfo](SuperOffice.WebApi.Data.ConsentInfo.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)

## Constructors

### <a id="SuperOffice_WebApi_Data_ConsentInfo__ctor" /> ConsentInfo()

Default constructor - defaults any enum props to 0.

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

## Properties

### <a id="SuperOffice_WebApi_Data_ConsentInfo_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_ConsentInfo_ConsentPersonId" /> ConsentPersonId

Primary key

```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_ConsentInfo_ConsentPurposeId" /> ConsentPurposeId

Primary key for the ConsentPurpose associated with this consent

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_ConsentInfo_ConsentPurposeKey" /> ConsentPurposeKey

Key of the ConsentPurpose associated with this consent

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_ConsentInfo_ConsentPurposeName" /> ConsentPurposeName

Name of the ConsentPurpose associated with this consent

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_ConsentInfo_ConsentSourceId" /> ConsentSourceId

Primary key for the ConsentSource associated with this consent

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_ConsentInfo_ConsentSourceKey" /> ConsentSourceKey

Key of the ConsentSource associated with this consent

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_ConsentInfo_ConsentSourceName" /> ConsentSourceName

Name of the ConsentSource associated with this consent

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_ConsentInfo_LegalBaseId" /> LegalBaseId

Primary key for the LegalBase associated with this consent

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_ConsentInfo_LegalBaseKey" /> LegalBaseKey

Key for the LegalBase associated with this consent

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_ConsentInfo_LegalBaseName" /> LegalBaseName

Name of the LegalBase associated with this consent

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_ConsentInfo_Registered" /> Registered

When this consent record was created

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_ConsentInfo_RegisteredAssociateId" /> RegisteredAssociateId

The ID of the associate who created this record

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_ConsentInfo_Updated" /> Updated

When this consent record was last updated

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_ConsentInfo_UpdatedAssociateId" /> UpdatedAssociateId

The ID of the associate who last updated this record

```csharp theme={null}
public virtual int UpdatedAssociateId { 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.Data.PersonEntity](/en/api/reference/webapi/SuperOffice.WebApi.Data.PersonEntity.md)
- [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.Person GetConsentInfosRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Person_GetConsentInfosRequest.md)
- [SuperOffice.WebApi.Data.Carrier](/en/api/reference/webapi/SuperOffice.WebApi.Data.Carrier.md)
- [SuperOffice.WebApi.Data.ConsentPurpose](/en/api/reference/webapi/SuperOffice.WebApi.Data.ConsentPurpose.md)
