Microsoft.VisualStudio.Project.NestedProjectNode.DelegateGetPropertyToNested C# (CSharp) Method

DelegateGetPropertyToNested() protected method

Delegates GetProperty calls to the inner nested.
protected DelegateGetPropertyToNested ( int propID ) : object
propID int The property to delegate.
return object
        protected virtual object DelegateGetPropertyToNested(int propID)
        {
            if (!this.ProjectManager.IsClosed)
            {
                Debug.Assert(this.nestedHierarchy != null, "The nested hierarchy object must be created before calling this method");

                object returnValue;

                // Do not throw since some project types will return E_FAIL if they do not support a property.
                int result = this.nestedHierarchy.GetProperty(VSConstants.VSITEMID_ROOT, propID, out returnValue);
                if (ErrorHandler.Succeeded(result))
                {
                    return returnValue;
                }
            }

            return null;
        }