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)

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

[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = true, 
	Inherited = true)]
public ref class ProvideGeneratorAttribute sealed : RegistrationAttribute

NameDescription
System_CAPS_pubmethodProvideGeneratorAttribute(Type^, String^, String^, String^, Boolean)

Initializes a new instance of ProvideGeneratorAttribute for the given package and generator.

NameDescription
System_CAPS_pubpropertyDescription

Gets the description of the generator.

System_CAPS_pubpropertyGenerateDesignTimeSource

Gets whether source code is generated for use at design time.

System_CAPS_pubpropertyGeneratorType

Gets the type of the code generator.

System_CAPS_pubpropertyName

Gets the name of the generator.

System_CAPS_pubpropertyPackageGuid

Gets the GUID of the package containing a project that supports invoking this generator.

System_CAPS_pubpropertyTypeId

Gets the current instance of this attribute.(Inherited from RegistrationAttribute.)

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Attribute.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object^)

(Inherited from Attribute.)

System_CAPS_pubmethodRegister(RegistrationAttribute::RegistrationContext^)

Registers this attribute with the given context.(Overrides RegistrationAttribute::Register(RegistrationAttribute::RegistrationContext^).)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodUnregister(RegistrationAttribute::RegistrationContext^)

Removes the registration information about a VSPackage when called by an external registration tool like regpkg.exe. For more information, see Registering VSPackages.(Overrides RegistrationAttribute::Unregister(RegistrationAttribute::RegistrationContext^).)

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

Return to top
Show: