GeneratedCodeAttribute (Clase)
.NET Framework 2.0
Nota: esta clase es nueva en la versión 2.0 de .NET Framework.
Identifica el código generado por una herramienta. Esta clase no se puede heredar.
Espacio de nombres: System.CodeDom.Compiler
Ensamblado: System (en system.dll)
Ensamblado: System (en 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
En el ejemplo de código siguiente se muestra el uso de la clase GeneratedCodeAttribute para identificar el código generado por equipo.
CodeAttributeDeclaration generatedCodeAttribute = new CodeAttributeDeclaration( typeof(System.CodeDom.Compiler.GeneratedCodeAttribute).FullName, new CodeAttributeArgument(Str("TypedDataSetGenerator")), new CodeAttributeArgument(Str("2.0.0.0"))); typeDeclaration.CustomAttributes.Add(generatedCodeAttribute);
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium, Windows Mobile para Pocket PC, Windows Mobile para Smartphone, Windows Server 2003, Windows XP Media Center, Windows XP Professional x64, Windows XP SP2, Windows XP Starter Edition
.NET Framework no admite todas las versiones de cada plataforma. Para obtener una lista de las versiones admitidas, vea Requisitos del sistema.
Contenido de la comunidad
Agregar