Microsoft.VisualStudio.Shel ...


Visual Studio SDK
ProvideProjectFactoryAttribute Class

Updated: November 2007

ProvideProjectFactoryAttribute declares that a package provides a project factory.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)

Syntax

Visual Basic (Declaration)
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True, Inherited := True)> _
Public NotInheritable Class ProvideProjectFactoryAttribute _
    Inherits RegistrationAttribute
Visual Basic (Usage)
Dim instance As ProvideProjectFactoryAttribute
C#
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
public sealed class ProvideProjectFactoryAttribute : RegistrationAttribute
Visual C++
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = true, Inherited = true)]
public ref class ProvideProjectFactoryAttribute sealed : public RegistrationAttribute
JScript
public final class ProvideProjectFactoryAttribute extends RegistrationAttribute
Remarks

A single VSPackage can provide multiple project factories. If a VSPackage declares that it provides a project factory, it should create the factory and offer it to Visual Studio in the Initialize method of the Package-derived class.

Inheritance Hierarchy

System..::.Object
  System..::.Attribute
    Microsoft.VisualStudio.Shell..::.RegistrationAttribute
      Microsoft.VisualStudio.Shell..::.ProvideProjectFactoryAttribute
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

Page view tracker