src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/Shell/Interop/VsProjectExtensions.cs
/// <summary>
///     Opens the specified item with the specified editor using the primary logical view.
/// </summary>
/// <returns>
///     The <see cref="IVsWindowFrame"/> that contains the editor; otherwise, <see langword="null"/> if it was opened
///     with an editor external of Visual Studio.
/// </returns>
Opens the specified item with the specified editor using the primary logical view.
Opens the specified item with the specified editor using the primary logical view .
public static IVsWindowFrame OpenItemWithSpecific(this IVsProject4 project, HierarchyId id, Guid editorType)
        {
            Requires.NotNull(project, nameof(project));
            HResult hr = project.OpenItemWithSpecific(id, 0, ref editorType, "", VSConstants.LOGVIEWID_Primary, (IntPtr)(-1), out IVsWindowFrame frame);
            if (hr.Failed)
                throw hr.Exception;
            return frame;
        }
public static IVsWindowFrame OpenItemWithSpecific ( this IVsProject4 project , HierarchyId id , Guid editorType ) { Requires . NotNull ( project , nameof ( project ) ) ; HResult hr = project . OpenItemWithSpecific ( id , 0 , ref editorType , " " , VSConstants . LOGVIEWID_Primary , ( IntPtr ) ( - 1 ) , out IVsWindowFrame frame ) ; if ( hr . Failed ) throw hr . Exception ; return frame ; }
Opens the specified item with the specified editor using the primary logical view.
Opens the specified item with the specified editor using the primary logical view .
// NOTE: frame is 'null' when opened in an external editor
The  that contains the editor; otherwise,  if it was opened
with an editor external of Visual Studio.
The that contains the editor ; otherwise if it was opened with an editor external of Visual Studio .
IVsProject4
this
id
HierarchyId
editorType
Guid