Binds a traits interface to a service contract.
Namespace:
Gallio.Runtime.Extensibility
Assembly:
Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| C# |
|---|
public TraitsAttribute(
Type traitsType
) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _
traitsType As Type _
) |
Parameters
- traitsType
- Type: System..::.Type
The traits type, a subclass of Traits.
Exceptions
| Exception | Condition |
|---|
| System..::.ArgumentNullException | Thrown if traitsType
is null. |
| System..::.ArgumentException | Thrown if traitsType
is not a class or if it is not derived from Traits. |
See Also