C# Класс XSharp.Project.XSharpProjectNode

Наследование: Microsoft.VisualStudio.Project.ProjectNode
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CreateServices object
InitializeCATIDs void
InitializeImageList void
XSharpProjectNode System

Открытые методы

Метод Описание
AddFileFromTemplate ( string source, string target ) : void

Adds the file from template.

CreateDependentFileNode ( ProjectElement item ) : XSharpDependentFileNode

Create dependent file node based on an msbuild item

CreateFileNode ( ProjectElement item ) : FileNode

Creates the file node.

GetAutomationObject ( ) : object

Returns an automation object representing this node

GetFile ( int fileId, uint flags, uint &itemid, string &fileName ) : int

Allows you to query the project for special files and optionally create them.

IsCodeFile ( string strFileName ) : bool

Evaluates if a file is an XSharp code file based on is extension

IsVoBinary ( string fileName ) : bool
Load ( string filename, string location, string name, uint flags, System.Guid &iidProject, int &canceled ) : void
XSharpProjectNode ( XSharpProjectPackage package ) : System

Initializes a new instance of the XSharpProjectNode class.

Защищенные методы

Метод Описание
AddFileToMsBuild ( string file ) : ProjectElement
AddNewFileNodeToHierarchy ( HierarchyNode parentNode, string fileName ) : void
CreatePropertiesObject ( ) : NodeProperties
GetConfigurationDependentPropertyPages ( ) : System.Guid[]

Return list of guids of property pages that are dependent of the configuration

GetConfigurationIndependentPropertyPages ( ) : System.Guid[]

Return list of guids of property pages that are independent of the configuration

GetPriorityProjectDesignerPages ( ) : System.Guid[]

Return list of guids of all property pages

IsItemTypeFileType ( string type ) : bool

Called by the project to know if the item is a file (that is part of the project) or an intermediate file used by the MSBuild tasks/targets Override this method if your project has more types or different ones

Приватные методы

Метод Описание
CreateServices ( Type serviceType ) : object
InitializeCATIDs ( ) : void

Provide mapping from our browse objects and automation objects to our CATIDs CATID (Category ID) objects are used to extend the properties that appear in the Properties window for projects and project items.

InitializeImageList ( ) : void
XSharpProjectNode ( ) : System

Initializes the XSharpProjectNode class.

Описание методов

AddFileFromTemplate() публичный Метод

Adds the file from template.
public AddFileFromTemplate ( string source, string target ) : void
source string The source template.
target string The target file.
Результат void

AddFileToMsBuild() защищенный Метод

protected AddFileToMsBuild ( string file ) : ProjectElement
file string
Результат Microsoft.VisualStudio.Project.ProjectElement

AddNewFileNodeToHierarchy() защищенный Метод

protected AddNewFileNodeToHierarchy ( HierarchyNode parentNode, string fileName ) : void
parentNode HierarchyNode
fileName string
Результат void

CreateDependentFileNode() публичный Метод

Create dependent file node based on an msbuild item
public CreateDependentFileNode ( ProjectElement item ) : XSharpDependentFileNode
item Microsoft.VisualStudio.Project.ProjectElement msbuild item
Результат XSharpDependentFileNode

CreateFileNode() публичный Метод

Creates the file node.
public CreateFileNode ( ProjectElement item ) : FileNode
item Microsoft.VisualStudio.Project.ProjectElement The project element item.
Результат Microsoft.VisualStudio.Project.FileNode

CreatePropertiesObject() защищенный Метод

protected CreatePropertiesObject ( ) : NodeProperties
Результат Microsoft.VisualStudio.Project.NodeProperties

GetAutomationObject() публичный Метод

Returns an automation object representing this node
public GetAutomationObject ( ) : object
Результат object

GetConfigurationDependentPropertyPages() защищенный Метод

Return list of guids of property pages that are dependent of the configuration
protected GetConfigurationDependentPropertyPages ( ) : System.Guid[]
Результат System.Guid[]

GetConfigurationIndependentPropertyPages() защищенный Метод

Return list of guids of property pages that are independent of the configuration
protected GetConfigurationIndependentPropertyPages ( ) : System.Guid[]
Результат System.Guid[]

GetFile() публичный Метод

Allows you to query the project for special files and optionally create them.
public GetFile ( int fileId, uint flags, uint &itemid, string &fileName ) : int
fileId int __PSFFILEID of the file
flags uint __PSFFLAGS flags for the file
itemid uint The itemid of the node in the hierarchy
fileName string The file name of the special file.
Результат int

GetPriorityProjectDesignerPages() защищенный Метод

Return list of guids of all property pages
protected GetPriorityProjectDesignerPages ( ) : System.Guid[]
Результат System.Guid[]

IsCodeFile() публичный Метод

Evaluates if a file is an XSharp code file based on is extension
public IsCodeFile ( string strFileName ) : bool
strFileName string The filename to be evaluated
Результат bool

IsItemTypeFileType() защищенный Метод

Called by the project to know if the item is a file (that is part of the project) or an intermediate file used by the MSBuild tasks/targets Override this method if your project has more types or different ones
protected IsItemTypeFileType ( string type ) : bool
type string Type name
Результат bool

IsVoBinary() публичный Метод

public IsVoBinary ( string fileName ) : bool
fileName string
Результат bool

Load() публичный Метод

public Load ( string filename, string location, string name, uint flags, System.Guid &iidProject, int &canceled ) : void
filename string
location string
name string
flags uint
iidProject System.Guid
canceled int
Результат void

XSharpProjectNode() публичный Метод

Initializes a new instance of the XSharpProjectNode class.
public XSharpProjectNode ( XSharpProjectPackage package ) : System
package XSharpProjectPackage Value of the project package for initialize internal package field.
Результат System