Condividi tramite


ProvideGeneratorAttribute Class

Registers the given code generator for Visual Basic and Visual C# projects when added to a Package-derived class or a class that implements IVsPackage.

Namespace:  Microsoft.VisualStudio.Shell.Design.Serialization
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'Dichiarazione
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True, Inherited := True)> _
Public NotInheritable Class ProvideGeneratorAttribute _
    Inherits RegistrationAttribute
'Utilizzo
Dim instance As ProvideGeneratorAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
public sealed class ProvideGeneratorAttribute : RegistrationAttribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = true, Inherited = true)]
public ref class ProvideGeneratorAttribute sealed : public RegistrationAttribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, Inherited = true)>]
type ProvideGeneratorAttribute =  
    class
        inherit RegistrationAttribute
    end
public final class ProvideGeneratorAttribute extends RegistrationAttribute

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.VisualStudio.Shell.RegistrationAttribute
      Microsoft.VisualStudio.Shell.Design.Serialization.ProvideGeneratorAttribute

Thread Safety

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

See Also

Reference

ProvideGeneratorAttribute Members

Microsoft.VisualStudio.Shell.Design.Serialization Namespace