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