Modifica

Condividi tramite


CodeParameterDeclarationExpression Constructors

Definition

Initializes a new instance of the CodeParameterDeclarationExpression class.

Overloads

CodeParameterDeclarationExpression()

Initializes a new instance of the CodeParameterDeclarationExpression class.

CodeParameterDeclarationExpression(CodeTypeReference, String)

Initializes a new instance of the CodeParameterDeclarationExpression class using the specified parameter type and name.

CodeParameterDeclarationExpression(String, String)

Initializes a new instance of the CodeParameterDeclarationExpression class using the specified parameter type and name.

CodeParameterDeclarationExpression(Type, String)

Initializes a new instance of the CodeParameterDeclarationExpression class using the specified parameter type and name.

CodeParameterDeclarationExpression()

Source:
CodeParameterDeclarationExpression.cs
Source:
CodeParameterDeclarationExpression.cs
Source:
CodeParameterDeclarationExpression.cs
Source:
CodeParameterDeclarationExpression.cs

Initializes a new instance of the CodeParameterDeclarationExpression class.

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

Applies to

CodeParameterDeclarationExpression(CodeTypeReference, String)

Source:
CodeParameterDeclarationExpression.cs
Source:
CodeParameterDeclarationExpression.cs
Source:
CodeParameterDeclarationExpression.cs
Source:
CodeParameterDeclarationExpression.cs

Initializes a new instance of the CodeParameterDeclarationExpression class using the specified parameter type and name.

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

Parameters

type
CodeTypeReference

An object that indicates the type of the parameter to declare.

name
String

The name of the parameter to declare.

Applies to

CodeParameterDeclarationExpression(String, String)

Source:
CodeParameterDeclarationExpression.cs
Source:
CodeParameterDeclarationExpression.cs
Source:
CodeParameterDeclarationExpression.cs
Source:
CodeParameterDeclarationExpression.cs

Initializes a new instance of the CodeParameterDeclarationExpression class using the specified parameter type and name.

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

Parameters

type
String

The type of the parameter to declare.

name
String

The name of the parameter to declare.

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 CodeParameterDeclarationExpression(Type, String) constructor that takes a type instead of a string as a parameter.

Applies to

CodeParameterDeclarationExpression(Type, String)

Source:
CodeParameterDeclarationExpression.cs
Source:
CodeParameterDeclarationExpression.cs
Source:
CodeParameterDeclarationExpression.cs
Source:
CodeParameterDeclarationExpression.cs

Initializes a new instance of the CodeParameterDeclarationExpression class using the specified parameter type and name.

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

Parameters

type
Type

The type of the parameter to declare.

name
String

The name of the parameter to declare.

Applies to