---
title: "Class PropertyNotFoundException"
slug: "sdk--stylelabs.m.sdk.exceptions.propertynotfoundexception"
abstract: ""
---
# Class PropertyNotFoundException

Exception for when a property was required, but not found.

## Inheritance

object

[SdkException](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.exceptions.sdkexception.html)

[NotFoundException](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.exceptions.notfoundexception.html)

PropertyNotFoundException

## Namespace: StylelabsStylelabs.MSdkExceptions

## Assembly: Stylelabs.M.Sdk.dll

## Syntax

```csharp
public class PropertyNotFoundException : NotFoundException
```

## Constructors

### PropertyNotFoundException()

Initializes a new instance of the [PropertyNotFoundException](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.exceptions.propertynotfoundexception.html) class.

#### Declaration

```csharp
public PropertyNotFoundException()
```

### PropertyNotFoundException(SerializationInfo, StreamingContext)

Initializes a new instance of the [PropertyNotFoundException](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.exceptions.propertynotfoundexception.html) class.

#### Declaration

```csharp
protected PropertyNotFoundException(SerializationInfo serializationInfo, StreamingContext streamingContext)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| SerializationInfo | serializationInfo | The serialization info. |
| StreamingContext | streamingContext | The streaming context. |

### PropertyNotFoundException(string, Exception)

Initializes a new instance of the [PropertyNotFoundException](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.exceptions.propertynotfoundexception.html) class.

#### Declaration

```csharp
public PropertyNotFoundException(string message, Exception exception)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| string | message | The message. |
| Exception | exception | The exception. |

### PropertyNotFoundException(string)

Initializes a new instance of the [PropertyNotFoundException](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.exceptions.propertynotfoundexception.html) class.

#### Declaration

```csharp
public PropertyNotFoundException(string message)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| string | message | The message. |
