GeneratedCodeAttribute クラス
アセンブリ: System (system.dll 内)

<AttributeUsageAttribute(AttributeTargets.All, Inherited:=False, AllowMultiple:=False)> _ Public NotInheritable Class GeneratedCodeAttribute Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.All, Inherited=false, AllowMultiple=false)] public sealed class GeneratedCodeAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::All, Inherited=false, AllowMultiple=false)] public ref class GeneratedCodeAttribute sealed : public Attribute

GeneratedCodeAttribute クラスは、コード分析ツールで使用でき、コンピュータによって生成されたコードを識別し、そのコードを生成したツールとツールのバージョンに基づいた分析を行います。

GeneratedCodeAttribute クラスを使用して、コンピュータによって生成されたコードを識別する方法を次のコード例に示します。
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);

System.Attribute
System.CodeDom.Compiler.GeneratedCodeAttribute


Windows 98, Windows 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
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- GeneratedCodeAttribute クラスのページへのリンク