Editar

Compartir a través de


CodeAttributeDeclaration Constructors

Definition

Initializes a new instance of the CodeAttributeDeclaration class.

Overloads

CodeAttributeDeclaration()

Initializes a new instance of the CodeAttributeDeclaration class.

CodeAttributeDeclaration(CodeTypeReference)

Initializes a new instance of the CodeAttributeDeclaration class using the specified code type reference.

CodeAttributeDeclaration(String)

Initializes a new instance of the CodeAttributeDeclaration class using the specified name.

CodeAttributeDeclaration(CodeTypeReference, CodeAttributeArgument[])

Initializes a new instance of the CodeAttributeDeclaration class using the specified code type reference and arguments.

CodeAttributeDeclaration(String, CodeAttributeArgument[])

Initializes a new instance of the CodeAttributeDeclaration class using the specified name and arguments.

CodeAttributeDeclaration()

Source:
CodeAttributeDeclaration.cs
Source:
CodeAttributeDeclaration.cs
Source:
CodeAttributeDeclaration.cs
Source:
CodeAttributeDeclaration.cs

Initializes a new instance of the CodeAttributeDeclaration class.

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

Applies to

CodeAttributeDeclaration(CodeTypeReference)

Source:
CodeAttributeDeclaration.cs
Source:
CodeAttributeDeclaration.cs
Source:
CodeAttributeDeclaration.cs
Source:
CodeAttributeDeclaration.cs

Initializes a new instance of the CodeAttributeDeclaration class using the specified code type reference.

public:
 CodeAttributeDeclaration(System::CodeDom::CodeTypeReference ^ attributeType);
public CodeAttributeDeclaration (System.CodeDom.CodeTypeReference attributeType);
new System.CodeDom.CodeAttributeDeclaration : System.CodeDom.CodeTypeReference -> System.CodeDom.CodeAttributeDeclaration
Public Sub New (attributeType As CodeTypeReference)

Parameters

attributeType
CodeTypeReference

The CodeTypeReference that identifies the attribute.

Remarks

The attributeType parameter is used to set the AttributeType and Name properties.

See also

Applies to

CodeAttributeDeclaration(String)

Source:
CodeAttributeDeclaration.cs
Source:
CodeAttributeDeclaration.cs
Source:
CodeAttributeDeclaration.cs
Source:
CodeAttributeDeclaration.cs

Initializes a new instance of the CodeAttributeDeclaration class using the specified name.

public:
 CodeAttributeDeclaration(System::String ^ name);
public CodeAttributeDeclaration (string name);
new System.CodeDom.CodeAttributeDeclaration : string -> System.CodeDom.CodeAttributeDeclaration
Public Sub New (name As String)

Parameters

name
String

The name of the attribute.

Applies to

CodeAttributeDeclaration(CodeTypeReference, CodeAttributeArgument[])

Source:
CodeAttributeDeclaration.cs
Source:
CodeAttributeDeclaration.cs
Source:
CodeAttributeDeclaration.cs
Source:
CodeAttributeDeclaration.cs

Initializes a new instance of the CodeAttributeDeclaration class using the specified code type reference and arguments.

public:
 CodeAttributeDeclaration(System::CodeDom::CodeTypeReference ^ attributeType, ... cli::array <System::CodeDom::CodeAttributeArgument ^> ^ arguments);
public CodeAttributeDeclaration (System.CodeDom.CodeTypeReference attributeType, params System.CodeDom.CodeAttributeArgument[] arguments);
new System.CodeDom.CodeAttributeDeclaration : System.CodeDom.CodeTypeReference * System.CodeDom.CodeAttributeArgument[] -> System.CodeDom.CodeAttributeDeclaration
Public Sub New (attributeType As CodeTypeReference, ParamArray arguments As CodeAttributeArgument())

Parameters

attributeType
CodeTypeReference

The CodeTypeReference that identifies the attribute.

arguments
CodeAttributeArgument[]

An array of type CodeAttributeArgument that contains the arguments for the attribute.

Remarks

The attributeType parameter is used to set the AttributeType and Name properties, and the arguments parameter is used to set the Arguments property for the CodeAttributeDeclaration.

See also

Applies to

CodeAttributeDeclaration(String, CodeAttributeArgument[])

Source:
CodeAttributeDeclaration.cs
Source:
CodeAttributeDeclaration.cs
Source:
CodeAttributeDeclaration.cs
Source:
CodeAttributeDeclaration.cs

Initializes a new instance of the CodeAttributeDeclaration class using the specified name and arguments.

public:
 CodeAttributeDeclaration(System::String ^ name, ... cli::array <System::CodeDom::CodeAttributeArgument ^> ^ arguments);
public CodeAttributeDeclaration (string name, params System.CodeDom.CodeAttributeArgument[] arguments);
new System.CodeDom.CodeAttributeDeclaration : string * System.CodeDom.CodeAttributeArgument[] -> System.CodeDom.CodeAttributeDeclaration
Public Sub New (name As String, ParamArray arguments As CodeAttributeArgument())

Parameters

name
String

The name of the attribute.

arguments
CodeAttributeArgument[]

An array of type CodeAttributeArgument that contains the arguments for the attribute.

Applies to