Bewerken

Delen via


CodeMemberField Constructors

Definition

Initializes a new instance of the CodeMemberField class.

Overloads

CodeMemberField()

Initializes a new instance of the CodeMemberField class.

CodeMemberField(CodeTypeReference, String)

Initializes a new instance of the CodeMemberField class using the specified field type and field name.

CodeMemberField(String, String)

Initializes a new instance of the CodeMemberField class using the specified field type and field name.

CodeMemberField(Type, String)

Initializes a new instance of the CodeMemberField class using the specified field type and field name.

CodeMemberField()

Source:
CodeMemberField.cs
Source:
CodeMemberField.cs
Source:
CodeMemberField.cs
Source:
CodeMemberField.cs

Initializes a new instance of the CodeMemberField class.

public:
 CodeMemberField();
public CodeMemberField ();
Public Sub New ()

Applies to

CodeMemberField(CodeTypeReference, String)

Source:
CodeMemberField.cs
Source:
CodeMemberField.cs
Source:
CodeMemberField.cs
Source:
CodeMemberField.cs

Initializes a new instance of the CodeMemberField class using the specified field type and field name.

public:
 CodeMemberField(System::CodeDom::CodeTypeReference ^ type, System::String ^ name);
public CodeMemberField (System.CodeDom.CodeTypeReference type, string name);
new System.CodeDom.CodeMemberField : System.CodeDom.CodeTypeReference * string -> System.CodeDom.CodeMemberField
Public Sub New (type As CodeTypeReference, name As String)

Parameters

type
CodeTypeReference

An object that indicates the type of the field.

name
String

The name of the field.

Applies to

CodeMemberField(String, String)

Source:
CodeMemberField.cs
Source:
CodeMemberField.cs
Source:
CodeMemberField.cs
Source:
CodeMemberField.cs

Initializes a new instance of the CodeMemberField class using the specified field type and field name.

public:
 CodeMemberField(System::String ^ type, System::String ^ name);
public CodeMemberField (string type, string name);
new System.CodeDom.CodeMemberField : string * string -> System.CodeDom.CodeMemberField
Public Sub New (type As String, name As String)

Parameters

type
String

The type of the field.

name
String

The name of the field.

Remarks

If the type parameter references a generic type, it must follow the syntax conventions for generic types. Generic types are formatted as follows: the name of the type, followed by a grave accent ("`"), followed by a count of the generic type arguments, followed by the parameters delimited with brackets.

Note

You must use square brackets ([]) and not the C# angle brackets (<>) to delimit generic parameters.

To avoid the possibility of making a syntactic mistake, consider using the CodeMemberField(Type, String) constructor that takes a type instead of a string as a parameter.

Applies to

CodeMemberField(Type, String)

Source:
CodeMemberField.cs
Source:
CodeMemberField.cs
Source:
CodeMemberField.cs
Source:
CodeMemberField.cs

Initializes a new instance of the CodeMemberField class using the specified field type and field name.

public:
 CodeMemberField(Type ^ type, System::String ^ name);
public CodeMemberField (Type type, string name);
new System.CodeDom.CodeMemberField : Type * string -> System.CodeDom.CodeMemberField
Public Sub New (type As Type, name As String)

Parameters

type
Type

The type of the field.

name
String

The name of the field.

Applies to