src/VisualStudio/Core/Def/Interactive/VsResetInteractive.cs
/// <summary>
/// Gets the properties of the currently selected projects necessary for reset.
/// </summary>
Gets the properties of the currently selected projects necessary for reset.
Gets the properties of the currently selected projects necessary for reset .
protected override bool GetProjectProperties(
            out ImmutableArray<string> references,
            out ImmutableArray<string> referenceSearchPaths,
            out ImmutableArray<string> sourceSearchPaths,
            out ImmutableArray<string> projectNamespaces,
            out string projectDirectory,
            out bool? is64bit)
        {
            var hierarchyPointer = default(IntPtr);
            var selectionContainerPointer = default(IntPtr);
            references = ImmutableArray<string>.Empty;
            referenceSearchPaths = ImmutableArray<string>.Empty;
            sourceSearchPaths = ImmutableArray<string>.Empty;
            projectNamespaces = ImmutableArray<string>.Empty;
            projectDirectory = null;
            is64bit = null;
            try
            {
                Marshal.ThrowExceptionForHR(_monitorSelection.GetCurrentSelection(
                    out hierarchyPointer, out var itemid, out var multiItemSelectPointer, out selectionContainerPointer));
                if (hierarchyPointer != IntPtr.Zero)
                {
                    GetProjectProperties(hierarchyPointer, out references, out referenceSearchPaths, out sourceSearchPaths, out projectNamespaces, out projectDirectory, out is64bit);
                    return true;
                }
            }
            finally
            {
                SafeRelease(hierarchyPointer);
                SafeRelease(selectionContainerPointer);
            }
            return false;
        }
protected override bool GetProjectProperties ( out ImmutableArray < string > references , out ImmutableArray < string > referenceSearchPaths , out ImmutableArray < string > sourceSearchPaths , out ImmutableArray < string > projectNamespaces , out string projectDirectory , out bool ? is64bit ) { var hierarchyPointer = default ( IntPtr ) ; var selectionContainerPointer = default ( IntPtr ) ; references = ImmutableArray < string > . Empty ; referenceSearchPaths = ImmutableArray < string > . Empty ; sourceSearchPaths = ImmutableArray < string > . Empty ; projectNamespaces = ImmutableArray < string > . Empty ; projectDirectory = null ; is64bit = null ; try { Marshal . ThrowExceptionForHR ( _monitorSelection . GetCurrentSelection ( out hierarchyPointer , out var itemid , out var multiItemSelectPointer , out selectionContainerPointer ) ) ; if ( hierarchyPointer != IntPtr . Zero ) { GetProjectProperties ( hierarchyPointer , out references , out referenceSearchPaths , out sourceSearchPaths , out projectNamespaces , out projectDirectory , out is64bit ) ; return true ; } } finally { SafeRelease ( hierarchyPointer ) ; SafeRelease ( selectionContainerPointer ) ; } return false ; }
Gets the properties of the currently selected projects necessary for reset.
Gets the properties of the currently selected projects necessary for reset .
ImmutableArray<string>
out
string
out
bool?
out