Initializes a new instance of the CustomFormatAttribute class.
Namespace: SimolAssembly: Simol (in Simol.dll) Version: 1.0.0.0
Syntax
C# |
---|
public CustomFormatAttribute( Type formatterType, params Object[] formatterArgs ) |
Visual Basic |
---|
Public Sub New ( _ formatterType As Type, _ ParamArray formatterArgs As Object() _ ) |
Visual C++ |
---|
public: CustomFormatAttribute( Type^ formatterType, ... array<Object^>^ formatterArgs ) |
Parameters
- formatterType
- Type: System..::..Type
Type of the formatter. The type must implement ITypeFormatter.
- formatterArgs
- Type: array<System..::..Object>[]()[][]
The formatter constructor arguments.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentException | If formatterType does not implement ITypeFormatter or can't be instantiated. |
System..::..ArgumentNullException | If formatterType is null |