IDatabaseProjectNode Interface
This interface represents the top-level node in Solution Explorer. You can access this class in several ways. By using Visual Studio Design Time Extensibility (DTE), you can navigate through the solution and cast the Object (project.Object as IVsHierarchy, in C#) of the appropriate EnvDTE.Project. If you navigate by using IVsSolution and its associated projects, you can cast the IVsProject, IVsHierarchy, or IVsUIHierarchy to an IDatabaseProjectNode. Nodes underneath this class will be IDatabaseNodes also: either IDatabaseFolderNode, IDatabaseFileNode, or IDatabaseReferenceNode.
This API is not CLS-compliant.
Namespace: Microsoft.VisualStudio.Data.Schema.Package.Project
Assembly: Microsoft.VisualStudio.Data.Schema.Package (in Microsoft.VisualStudio.Data.Schema.Package.dll)
Syntax
'Declaration
<CLSCompliantAttribute(False)> _
Public Interface IDatabaseProjectNode _
Inherits IDatabaseNode
[CLSCompliantAttribute(false)]
public interface IDatabaseProjectNode : IDatabaseNode
[CLSCompliantAttribute(false)]
public interface class IDatabaseProjectNode : IDatabaseNode
[<CLSCompliantAttribute(false)>]
type IDatabaseProjectNode =
interface
interface IDatabaseNode
end
public interface IDatabaseProjectNode extends IDatabaseNode
The IDatabaseProjectNode type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() |
AppDesignerFolder | Gets the App Designer folder. For database projects this is usually the "Properties" folder. |
![]() |
AppDesignerFolderName | Gets the App Designer folder name. For database projects this is usually "Properties". |
![]() |
BuildProject | Gets the build project that loaded the project file. |
![]() |
Caption | Gets the caption that is displayed in Solution Explorer. (Inherited from IDatabaseNode.) |
![]() |
Children | Gets the list of child nodes for this node. (Inherited from IDatabaseNode.) |
![]() |
ConfigurationProvider | Returns the configuration provider for this project. |
![]() |
CurrentConfigName | Gets the name of the current configuration. |
![]() |
DatabaseProjectBuildActionHelper | Gets the helper that converts build actions to localized names and back to build actions. |
![]() |
DatabaseSchemaProvider | Gets the DatabaseSchemaProvider for this project. |
![]() |
DataSchemaModel | Gets the schema manager that is initialized by the database schema provider. |
![]() |
DebuggableDatabaseProject | Gets the interface that is used to control the debuggable database project configuration interface. |
![]() |
DependencyViewController | Gets the feature that controls our hive in the Dependency View. |
![]() |
DirectoryName | Gets the directory location for this node. (Inherited from IDatabaseNode.) |
![]() |
DisableDragDropOrCopyPaste | Gets or sets a value that indicates whether the project disallows drag-and-drop operations and copy-and-paste operations. |
![]() |
ErrorManager | Gets the error manager that is provided by the project system. |
![]() |
ExtensionManager | Gets the extension manager for this project. |
![]() |
FileScriptCache | Gets the file manager that is used to populate the model with files. |
![]() |
Id | Gets the unique identifier for this node in Solution Explorer. (Inherited from IDatabaseNode.) |
![]() |
InDragDropOrCopyPaste | Gets a value that indicates whether the project system is currently in a copy-and-paste operation or in a drag-and-drop operation. |
![]() |
IsBuildInProgress | Gets a value that indicates whether a project build is in progress. |
![]() |
IsDeserializedProject | Gets a value that indicates whether this project is deserialized. |
![]() |
IsDisabled | Gets or sets a value that indicates whether the project is disabled. |
![]() |
IsImported | Gets a value that indicates whether this node is to be imported into the project. (Inherited from IDatabaseNode.) |
![]() |
IsNewProject | Gets a value that indicates whether this project is a new project. |
![]() |
IsNonMemberItem | Gets a value that indicates whether this item is a non-member item of the project. (Inherited from IDatabaseNode.) |
![]() |
IsProjectClosed | Gets a value that indicates whether the project is closed. |
![]() |
IsScriptsOnlyProject | Gets a value that indicates whether this project was designed to be a scripts-only project, that is, a project that offers minimal processing. |
![]() |
ModelBuilder | Gets the model builder that is used to send scripts into the schema manager. |
![]() |
ModelBuildInProgress | Gets a value that indicates whether a model build is in progress. |
![]() |
NodeProperties | Gets the properties that are associated with this node. (Inherited from IDatabaseNode.) |
![]() |
ParentNode | Gets the parent for this node. (Inherited from IDatabaseNode.) |
![]() |
ProjectBitmap | Sets the bitmap for the main database project node. |
![]() |
ProjectFile | Gets the project file name. |
![]() |
ProjectFolder | Gets the folder where the project is created. |
![]() |
ProjectManager | Gets the top-level root node for this particular node. (Inherited from IDatabaseNode.) |
![]() |
PropertiesContainer | Gets the properties node. |
![]() |
ReferenceContainer | Gets the reference container node. |
![]() |
ReferenceController | This interface can be provided by database schema provider (DSP) vendors to customize how references function. |
![]() |
SchemaViewController | Gets the feature that controls the hive in Schema View. |
![]() |
Site | Gets a service provider callback object that is provided by the IDE that hosts the project manager. |
![]() |
TaskHost | Gets the ITaskHost that is used to initialize the project system and to interface with the build process. |
![]() |
Url | Gets the full path of this node on disk. (Inherited from IDatabaseNode.) |
![]() |
UserInteractionServices | Gets the UserInteractionServices for this project. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
AddDatabaseReference | Brings up the Add Database Reference dialog box if and only if the project has an IDatabaseProjectReferenceController extension. |
![]() |
AddProjectReference | Brings up the Add Reference dialog box if and only if the project has an IDatabaseProjectReferenceController extension. |
![]() |
AddService | Adds a service into the database project node. |
![]() |
CreateFileNode(String, IDatabaseFileNode%) | Adds a new file node to the hierarchy. |
![]() |
CreateFileNode(IDatabaseNode, String, IDatabaseFileNode%) | Adds a new file node to the hierarchy. |
![]() |
CreateFileNodes | This adds files to the hierarchy in a batch. |
![]() |
CreateFolderNodes | Walks the subpaths of a project-relative path and creates the folder nodes hierarchy if it is not present. |
![]() |
ExcludeFromProject | Excludes the specified list of nodes from the database project. |
![]() |
FindNode | Returns a file that is specified by its full path. |
![]() |
GetBuildFilesInProjectFileOrder | Returns all files with a build action of Build in a dictionary. |
![]() |
GetCustomMetadata | Returns the custom metadata for this node. (Inherited from IDatabaseNode.) |
![]() |
GetItemAttribute | Returns the metadata for this item in the project file. This call is just a convenience to GetItemAttribute. (Inherited from IDatabaseNode.) |
![]() |
GetIVsHierarchy | Returns the IVsHierarchy for this project. |
![]() |
GetProjectFeatures<T> | Returns a list of project features that support this interface. |
![]() |
GetProjectProperty(String, Boolean, DatabaseProjectPropertyValueType) | Returns the value of a project property. |
![]() |
GetProjectProperty(String, Boolean, DatabaseProjectPropertyValueType, String) | Returns the value of a project property. |
![]() |
GetProjectPropertyAsBoolean | Returns the value of a project property as a Boolean. |
![]() |
GetProperty | Returns a Visual Studio Integration Partner (VSIP) property, such as VSHPROPID_IsNonMemberItem. (Inherited from IDatabaseNode.) |
![]() |
GetSelectedSolutionExplorerNodes | Returns the selected Solution Explorer hierarchy nodes that are selected for this hierarchy. |
![]() |
GetService | Hook into GetService so the caller can provide database services. |
![]() |
GetSingleSelectedSolutionExplorerNode | Returns a single selected node that is owned by the root node. |
![]() |
IncludeInProject | Includes the specified list of nodes in the database project. |
![]() |
OpenAddItemDialogFromSolutionExplorer | A componentized way to open the Add Item dialog box from anywhere in the project system. |
![]() |
OpenAddItemDialogWithContext | Opens the Visual Studio Add New Item dialog box. |
![]() |
OpenProjectDesigner | Opens the project properties by using the specified initial page (if not Guid.Empty). |
![]() |
QueryEditProjectFile | Verifies whether the file can be written to. Returns false if the file is read-only or if it is not checked out and the user did not assign permission to change it. |
![]() |
RecreateModel | Disposes the DataSchemaModel for the current project system and re-creates an empty DataSchemaModel. |
![]() |
RegisterForIdleProcessing | Registers a component for idle processing. |
![]() |
ReloadThisProject | Reloads this project. |
![]() |
Remove | Removes items from the hierarchy. (Inherited from IDatabaseNode.) |
![]() |
RemoveFromIdleProcessing | Removes a component from idle processing. |
![]() |
RemoveService | Removes a service from the database project node. |
![]() |
Save | Saves the project file. |
![]() |
SaveAllModelFiles | Saves all files that are open in the Running Document Table that, when they are saved, would change the project system model. |
![]() |
SetItemAttribute | Sets the metadata for this item in the project file. This call is just a convenience to SetItemAttribute. (Inherited from IDatabaseNode.) |
![]() |
SetProjectFileDirty | Sets the dirty state of the project. |
![]() |
SetProjectProperty(String, String, DatabaseProjectEventPropagation) | Sets a project property. |
![]() |
SetProjectProperty(String, String, DatabaseProjectPropertyComparisonType, DatabaseProjectEventPropagation) | Sets a project property. |
![]() |
SetProperty | Sets a Visual Studio Integration Partner (VSIP) property, such as VSHPROPID_IsNonMemberItem. (Inherited from IDatabaseNode.) |
![]() |
SubHierarchyContainsImportedNode | Returns a value that indicates whether the sub-hierarchy for this node contains any imported nodes. (Inherited from IDatabaseNode.) |
![]() |
SyncProjectSystem(DatabaseProjectProjectSyncOption) | Calls to this method will flush and process any unprocessed files in the file manager feature. |
![]() |
SyncProjectSystem(DatabaseProjectProjectSyncOption, Int32) | Calls to this method will flush and process any unprocessed files in the file manager feature. |
Top
Events
Name | Description | |
---|---|---|
![]() |
AsyncModelBuildCompleted | Raised when the model build has completed to provide the results from the model building thread. |
![]() |
BuildActionChange | Raised when the build action for a node has changed. |
![]() |
BuildMacroRequest | Raised to allow listeners to add new build macros to the pre-build and post-build macro dialog box. |
![]() |
CanDeleteItemRequest | Raised to determine whether a node can be deleted from Solution Explorer. |
![]() |
CanEditRequest | Raised to determine whether a node caption can be edited. |
![]() |
DatabaseNodeAdded | Indicates that a new node has been added to Solution Explorer. |
![]() |
DatabaseNodeDeleted | Raised when a node has been deleted from Solution Explorer. |
![]() |
DatabaseNodeRenamed | Raised when a node has been renamed in Solution Explorer. |
![]() |
DataSchemaModelRecycled | Raised after the DataSchemaModel that is owned by the project has been disposed and re-created. |
![]() |
DataSchemaModelRecycling | Raised before the DataSchemaModel that is owned by the project is disposed and re-created. |
![]() |
FileIconRequest | Raised when Solution Explorer requires an icon for a new file name extension. |
![]() |
FinishedDragDropOrCopyPaste | Raised after a drag-and-drop operation or a copy-and-paste operation has occurred. |
![]() |
IsCodeFileRequest | Raised when a node is added to the project. |
![]() |
NewProjectCreated | Raised after the project has been created. |
![]() |
NodeAttributesChanged | Raised when attributes for a node have changed. |
![]() |
NodeExcludedFromProject | Raised when a node has been excluded from the project. |
![]() |
NodeIncludedInProject | Raised when a node has been included in the project. |
![]() |
ProjectClosed | Raised after the project has closed. |
![]() |
ProjectClosing | Raised before a project closes. |
![]() |
ProjectLoaded | Raised after the project is loaded. |
![]() |
ProjectOpened | Raised after the project has opened. |
![]() |
ProjectOpening | Raised before the project opens. |
![]() |
ProjectPropertyChanged | Raised after project properties have changed. |
![]() |
ProjectPropertyChanging | Raised before project properties are changed. |
![]() |
ProjectRenaming | Raised before a project is renamed. |
![]() |
ProjectSaved | Raised after the project has been saved. |
![]() |
ProjectSaving | Raised before the project is saved. |
![]() |
ServiceAdded | Raised when a service has been added to the project. |
![]() |
ShowDeleteRemoveMessage | Raised when one or more nodes are deleted from Solution Explorer. |
Top
See Also
Reference
Microsoft.VisualStudio.Data.Schema.Package.Project Namespace