VsTeXProject.VisualStudio.Project.ProjectNode.OpenItemWithSpecific C# (CSharp) Метод

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

public OpenItemWithSpecific ( uint itemId, uint editorFlags, Guid &editorType, string physicalView, Guid &logicalView, IntPtr docDataExisting, IVsWindowFrame &frame ) : int
itemId uint
editorFlags uint
editorType Guid
physicalView string
logicalView Guid
docDataExisting IntPtr
frame IVsWindowFrame
Результат int
        public virtual int OpenItemWithSpecific(uint itemId, uint editorFlags, ref Guid editorType, string physicalView,
            ref Guid logicalView, IntPtr docDataExisting, out IVsWindowFrame frame)
        {
            // Init output params
            frame = null;

            var n = NodeFromItemId(itemId);
            if (n == null)
            {
                throw new ArgumentException(SR.GetString(SR.ParameterMustBeAValidItemId, CultureInfo.CurrentUICulture),
                    "itemId");
            }

            // Delegate to the document manager object that knows how to open the item
            var documentManager = n.GetDocumentManager();
            if (documentManager != null)
            {
                return documentManager.OpenWithSpecific(editorFlags, ref editorType, physicalView, ref logicalView,
                    docDataExisting, out frame, WindowFrameShowAction.DoNotShow);
            }

            // This node does not have an associated document manager and we must fail
            return VSConstants.E_FAIL;
        }
ProjectNode