OutputDescriptor Constructor (String, Type, String, String)
Initializes a new instance of the OutputDescriptor class with the specified key, data type, name, and description.
Namespace: Microsoft.VisualStudio.TeamSystem.Data.DataGenerator
Assembly: Microsoft.VisualStudio.TeamSystem.Data (in Microsoft.VisualStudio.TeamSystem.Data.dll)
Syntax
'Declaration
Public Sub New ( _
key As String, _
type As Type, _
name As String, _
description As String _
)
'Usage
Dim key As String
Dim type As Type
Dim name As String
Dim description As String
Dim instance As New OutputDescriptor(key, type, _
name, description)
public OutputDescriptor(
string key,
Type type,
string name,
string description
)
public:
OutputDescriptor(
String^ key,
Type^ type,
String^ name,
String^ description
)
public function OutputDescriptor(
key : String,
type : Type,
name : String,
description : String
)
Parameters
- key
Type: System.String
The key that is used to uniquely identify the output value. For the default designer, this key is the property name.
- type
Type: System.Type
The data type of the output.
- name
Type: System.String
The friendly name of the output. This name appears in the Generator Output column.
- description
Type: System.String
The description of the output.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | type is nulla null reference (Nothing in Visual Basic). |
| ArgumentNullException | key is nulla null reference (Nothing in Visual Basic). |
| ArgumentException | key is empty. |
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.TeamSystem.Data.DataGenerator Namespace