nedcomp hosting homepage

Producten en Diensten
Dedicated servers
Datacenter informatie
Partners, resellers
Helpdesk informatie
Technische docs, tools
Support homepage
ASP componenten
Praktische ASP, ASP.NET
Visual route server
Whois (domein gegevens)
Software documentatie
Whitepapers
Zoeken
Nedcomp / algemeen

Zoeken
 

Copyright © Nedcomp Hosting
Telefoon nr :   +31 184 670111
Fax nummer :   +31 184 631384
E-mailadres :   info@nedcomp.nl
 

.NET Framework Class Library  

CodeAttributeDeclaration Class

Represents an attribute declaration.

For a list of all members of this type, see CodeAttributeDeclaration Members.

System.Object
   System.CodeDom.CodeAttributeDeclaration

[Visual Basic]
<Serializable>
<ClassInterface(ClassInterfaceType.AutoDispatch)>
<ComVisible(True)>
Public Class CodeAttributeDeclaration
[C#]
[Serializable]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
public class CodeAttributeDeclaration
[C++]
[Serializable]
[ClassInterface(ClassInterfaceType::AutoDispatch)]
[ComVisible(true)]
public __gc class CodeAttributeDeclaration
[JScript]
public
   Serializable
   ClassInterface(ClassInterfaceType.AutoDispatch)
   ComVisible(true)
class CodeAttributeDeclaration

Thread Safety

Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Remarks

CodeAttributeDeclaration can be used to represent an expression that declares an attribute. The attribute name and the arguments for the attribute are stored as properties of this object. CodeAttributeArgument can be used to represent each argument for the attribute.

Example

[Visual Basic, C#] The following code creates a CodeAttributeDeclaration that declares a CLSCompliantAttribute named with an argument of false:

[C#] 
CodeAttributeDeclaration declaration1 = new CodeAttributeDeclaration("System.CLSCompliantAttribute", new CodeAttributeArgument(new CodePrimitiveExpression(false)));
// A C# code generator produces the following source code for the preceeding example code:
// [CLSCompliantAttribute(false)]
[Visual Basic] 
Dim declaration1 As New CodeAttributeDeclaration("System.CLSCompliantAttribute", new CodeAttributeArgument(new CodePrimitiveExpression(false)))
' A Visual Basic code generator produces the following source code for the preceeding example code:
' <CLSCompliantAttribute(false)>

[C++, JScript] No example is available for C++ or JScript. To view a Visual Basic or C# example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Namespace: System.CodeDom

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System (in System.dll)

See Also

CodeAttributeDeclaration Members | System.CodeDom Namespace | CodeAttributeDeclarationCollection | CodeAttributeArgument