CodeAttributeDeclaration Constructor (CodeTypeReference^, array<CodeAttributeArgument^>^)

 

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

Namespace:   System.CodeDom
Assembly:  System (in System.dll)

public:
CodeAttributeDeclaration(
	CodeTypeReference^ attributeType,
	... array<CodeAttributeArgument^>^ arguments
)

Parameters

attributeType
Type: System.CodeDom::CodeTypeReference^

The CodeTypeReference that identifies the attribute.

arguments
Type: array<System.CodeDom::CodeAttributeArgument^>^

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

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.

.NET Framework
Available since 2.0
Return to top
Show: