---
title: "Interface IRequestByUsername"
slug: "sdk--stylelabs.m.sdk.contracts.notifications.irequestbyusername"
abstract: ""
---
# Interface IRequestByUsername

Interface for notification requests that target users by username.

## Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ContractsNotifications

## Assembly: Stylelabs.M.Sdk.dll

## Syntax

```csharp
public interface IRequestByUsername
```

## Properties

### Recipients

Gets or sets the recipients.

#### Declaration

```csharp
IList<string> Recipients { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| IList<>string |  |

## Methods

### Validate()

Validates the request.

#### Declaration

```csharp
void Validate()
```

#### Exceptions

| Type | Condition |
| --- | --- |
| [ValidationException](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.exceptions.validationexception.html) | When the request has invalid properties. |
