ConnectionKeyAttribute constructor (1 of 2)
namespace: Serenity.Data assembly: Serenity.Net.Data
Initializes a new instance of the ConnectionKeyAttribute class.
public ConnectionKeyAttribute(string connectionKey)
| parameter | description |
|---|---|
| connectionKey | The connection key. |
See Also
- class ConnectionKeyAttribute
ConnectionKeyAttribute constructor (2 of 2)
namespace: Serenity.Data assembly: Serenity.Net.Data
Initializes a new instance of the ConnectionKeyAttribute class with a type that has a ConnectionKey attribute to read the connection key from.
public ConnectionKeyAttribute(Type sourceType)
| parameter | description |
|---|---|
| sourceType | Type of the source. |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | sourceType is null |
| ArgumentOutOfRangeException | sourceType has no ConnectionKey attribute. |
See Also
- class ConnectionKeyAttribute