Skip to content

ConnectionKeyAttribute constructor (1 of 2)

Initializes a new instance of the ConnectionKeyAttribute class.

public ConnectionKeyAttribute(string connectionKey)
parameter description
connectionKey The connection key.

See Also


ConnectionKeyAttribute constructor (2 of 2)

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