Microsoft.VisualStudio.Project.ProjectNode.GetItemParentNode C# (CSharp) Méthode

GetItemParentNode() private méthode

Get the parent node of an msbuild item
private GetItemParentNode ( Microsoft.Build.Evaluation item ) : HierarchyNode
item Microsoft.Build.Evaluation msbuild item
Résultat HierarchyNode
        private HierarchyNode GetItemParentNode(MSBuild.ProjectItem item)
        {
            HierarchyNode currentParent = this;
            string strPath = item.EvaluatedInclude;

            strPath = Path.GetDirectoryName(strPath);
            if (strPath.Length > 0)
            {
                // Use the relative to verify the folders...
                currentParent = this.CreateFolderNodes(strPath);
            }
            return currentParent;
        }
ProjectNode