Microsoft.VisualStudio.Project.ComReferenceNode.ComReferenceNode C# (CSharp) Method

ComReferenceNode() public method

Constructor for the ComReferenceNode.
public ComReferenceNode ( ProjectNode root, ProjectElement element ) : System
root ProjectNode
element ProjectElement
return System
        public ComReferenceNode(ProjectNode root, ProjectElement element)
            : base(root, element)
        {
            this.typeName = this.ItemNode.GetMetadata(ProjectFileConstants.Include);
            string typeGuidAsString = this.ItemNode.GetMetadata(ProjectFileConstants.Guid);
            if(typeGuidAsString != null)
            {
                this.typeGuid = new Guid(typeGuidAsString);
            }

            this.majorVersionNumber = this.ItemNode.GetMetadata(ProjectFileConstants.VersionMajor);
            this.minorVersionNumber = this.ItemNode.GetMetadata(ProjectFileConstants.VersionMinor);
            this.lcid = this.ItemNode.GetMetadata(ProjectFileConstants.Lcid);
            this.SetProjectItemsThatRelyOnReferencesToBeResolved(false);
            this.SetInstalledFilePath();
        }

Same methods

ComReferenceNode::ComReferenceNode ( ProjectNode root, VSCOMPONENTSELECTORDATA selectorData ) : System
ComReferenceNode::ComReferenceNode ( ProjectNode root, VSCOMPONENTSELECTORDATA selectorData, string wrapperTool ) : System