GeneratedCodeAttribute Class
.NET Framework 3.0
Identifies code generated by a tool. This class cannot be inherited.
Namespace: System.CodeDom.Compiler
Assembly: System (in system.dll)
Assembly: System (in system.dll)
[AttributeUsageAttribute(AttributeTargets.All, Inherited=false, AllowMultiple=false)] public sealed class GeneratedCodeAttribute : Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.All, Inherited=false, AllowMultiple=false) */ public final class GeneratedCodeAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.All, Inherited=false, AllowMultiple=false) public final class GeneratedCodeAttribute extends Attribute
Not applicable.
The following code example shows the use of the GeneratedCodeAttribute class to identify computer-generated code.
CodeAttributeDeclaration generatedCodeAttribute =
new CodeAttributeDeclaration( typeof(System.CodeDom.Compiler.GeneratedCodeAttribute).FullName,
new CodeAttributeArgument(
new CodePrimitiveExpression("TypedDataSetGenerator" )),
new CodeAttributeArgument(
new CodePrimitiveExpression("2.0.0.0")));typeDeclaration.CustomAttributes.Add(generatedCodeAttribute);
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: