Method SetRequiredKeys
| Improve this Doc View SourceSetRequiredKeys(String[])
Sets the required keys by means of a string collection.
Declaration
public IEnvValidator SetRequiredKeys(params string[] keys)
Parameters
| Type | Name | Description |
|---|---|---|
| String[] | keys | The required keys to set. |
Returns
| Type | Description |
|---|---|
| IEnvValidator | An instance implementing the fluent interface. |
Implements
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
| ArgumentException | The length of the |
SetRequiredKeys<TKeys>()
Sets the required keys by means of the properties of a class or struct.
Declaration
public IEnvValidator SetRequiredKeys<TKeys>()
Returns
| Type | Description |
|---|---|
| IEnvValidator | An instance implementing the fluent interface. |
Type Parameters
| Name | Description |
|---|---|
| TKeys | The type with the required keys. |
Implements
| Improve this Doc View SourceSetRequiredKeys(Type)
Sets the required keys by means of the properties of a class or struct.
Declaration
public IEnvValidator SetRequiredKeys(Type keysType)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | keysType | The type with the required keys. |
Returns
| Type | Description |
|---|---|
| IEnvValidator | An instance implementing the fluent interface. |
Implements
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|