FlavoredProjectBase Class
A project that is a subtype/flavor of an inner project.
Inheritance Hierarchy
Object
Microsoft.VisualStudio.Shell.Flavor.FlavoredProjectBase
Namespace: Microsoft.VisualStudio.Shell.Flavor
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public MustInherit Class FlavoredProjectBase _
Implements IVsAggregatableProjectCorrected, IServiceProvider, IVsHierarchy, IVsUIHierarchy, _
IOleCommandTarget
public abstract class FlavoredProjectBase : IVsAggregatableProjectCorrected,
IServiceProvider, IVsHierarchy, IVsUIHierarchy, IOleCommandTarget
public ref class FlavoredProjectBase abstract : IVsAggregatableProjectCorrected,
IServiceProvider, IVsHierarchy, IVsUIHierarchy, IOleCommandTarget
[<AbstractClass>]
type FlavoredProjectBase =
class
interface IVsAggregatableProjectCorrected
interface IServiceProvider
interface IVsHierarchy
interface IVsUIHierarchy
interface IOleCommandTarget
end
public abstract class FlavoredProjectBase implements IVsAggregatableProjectCorrected, IServiceProvider, IVsHierarchy, IVsUIHierarchy, IOleCommandTarget
The FlavoredProjectBase type exposes the following members.
Constructors
Name | Description | |
---|---|---|
FlavoredProjectBase | Initializes a new instance of FlavoredProjectBase. |
Top
Methods
Name | Description | |
---|---|---|
AdviseHierarchyEvents | Advises hierarchy events. | |
Close | Closes the hierarchy. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
ExecCommand | Executes the specified command. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
FreeInterfaces | Frees the different objects that make up the hierarchy. | |
GetCanonicalName | Gets the canonical name of the specified element. | |
GetComInterface<Interface_T> | A project derived from this base class will be aggregated with a native COM component (the ProjectAggregator object) that can also aggregate an inner project in case of flavoring. | |
GetGuidProperty | Gets the GUID of the specified item. | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetNestedHierarchy | Gets the nested project. | |
GetProperty | ||
GetSite | ||
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InitializeForOuter | Allows the project to initialize itself. At this point it possible to call the inner project. This method also allows canceling the project creation process. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnAggregationComplete | This is called when all object in aggregation have received InitializeForOuter calls. At this point the aggregation is complete and fully functional. | |
ParseCanonicalName | ||
QueryClose | ||
QueryStatusCommand | ||
SetGuidProperty | ||
SetInnerProject | This is were all QI for interface on the inner object should happen Then set the inner project wait for InitializeForOuter to be called to do the real initialization | |
SetProperty | ||
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
UnadviseHierarchyEvents | ||
Unused0 | ||
Unused1 | ||
Unused2 | ||
Unused3 | ||
Unused4 |
Top
Events
Name | Description | |
---|---|---|
DirectoryAdded | Called after a directory was added to this project. | |
DirectoryRemoved | Called after a directory was remove from this project. | |
DirectoryRenamed | Called after a directory was renamed in this project. | |
FileAdded | Called after a file was added to this project. | |
FileRemoved | Called after a file was remove from this project. | |
FileRenamed | Called after a file was renamed in this project. | |
SccStatusChanged | Called after the source code control status of a file in this project changed. |
Top
Extension Methods
Name | Description | |
---|---|---|
IsCapabilityMatch | Checks whether a given project matches the requirements prescribed in an AppliesTo expression. (Defined by PackageUtilities.) |
Top
Fields
Name | Description | |
---|---|---|
_innerOleCommandTarget | The inner command target. | |
_innerVsAggregatableProject | The aggregatable project. | |
_innerVsHierarchy | The inner hierarchy. | |
_innerVsUIHierarchy | The inner UI hierarchy. | |
serviceProvider | The service provider. |
Top
Explicit Interface Implementations
Top
Remarks
The default behavior of all methods is to delegate to the inner project. For any behavior you want to change, simply handle the request yourself.
You must set the serviceProvider field on this class before attempting to load the project.
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.