GeneratorAttribute Class
Visual Studio 2005
Identifies a class as a data generator.
Namespace: Microsoft.VisualStudio.TeamSystem.Data.DataGenerator
Assembly: Microsoft.VisualStudio.TeamSystem.Data (in microsoft.visualstudio.teamsystem.data.dll)
Assembly: Microsoft.VisualStudio.TeamSystem.Data (in microsoft.visualstudio.teamsystem.data.dll)
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=false, Inherited=true)] [CLSCompliantAttribute(true)] public sealed class GeneratorAttribute : Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=false, Inherited=true) */ /** @attribute CLSCompliantAttribute(true) */ public final class GeneratorAttribute extends Attribute
GeneratorAttribute is used to specify the designer that the data generator uses. The Generator abstract base class has the GeneratorAttribute and specifies the DefaultGeneratorDesigner.
You should use the GeneratorAttribute in the following case:
-
You want a data generator to use a custom designer.
You should not use the GeneratorAttribute in the following cases:
-
Your data generator class inherits from Generator and you want to use the DefaultGeneratorDesigner.
-
Your data generator class inherits from another data generator class that is already decorated with GeneratorAttribute and you are satisfied with the designer already specified.
System.Object
System.Attribute
Microsoft.VisualStudio.TeamSystem.Data.DataGenerator.GeneratorAttribute
System.Attribute
Microsoft.VisualStudio.TeamSystem.Data.DataGenerator.GeneratorAttribute