src/Misc/EFTools/DesignXmlCore/Common/RdtManager.cs
/// <summary>
///     Closes the frame.  Returns true
///     if the editor was found.
/// </summary>
Closes the frame.  Returns true
if the editor was found.
Closes the frame . Returns true if the editor was found .
public void CloseFrame(string fullFileName, out int foundAndClosed)
        {
            foundAndClosed = 0;
            if (string.IsNullOrEmpty(fullFileName) == false)
            {
                var rdt2 = GetRunningDocumentTable2();
                if (rdt2 != null)
                {
                    var hr = rdt2.QueryCloseRunningDocument(fullFileName, out foundAndClosed);
                    if (hr != VSConstants.OLE_E_PROMPTSAVECANCELLED)
                    {
                        NativeMethods.ThrowOnFailure(hr);
                    }
                }
            }
        }
public void CloseFrame ( string fullFileName , out int foundAndClosed ) { foundAndClosed = 0 ; if ( string . IsNullOrEmpty ( fullFileName ) == false ) { var rdt2 = GetRunningDocumentTable2 ( ) ; if ( rdt2 != null ) { var hr = rdt2 . QueryCloseRunningDocument ( fullFileName , out foundAndClosed ) ; if ( hr != VSConstants . OLE_E_PROMPTSAVECANCELLED ) { NativeMethods . ThrowOnFailure ( hr ) ; } } } }
Closes the frame.
Closes the frame .
fullFileName
string
int
out