IOpenDocumentEnumeratorFactory.GetEnumeratorFavoringOpenDocuments Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get an enumerator for all open documents.
public:
Microsoft::VisualStudio::Shell::Internal::FileEnumerationService::IFileEntityAsyncEnumerator ^ GetEnumeratorFavoringOpenDocuments(Microsoft::VisualStudio::Shell::Internal::FileEnumerationService::IFileEntityAsyncEnumerator ^ fileEntityEnumerator);
public Microsoft.VisualStudio.Shell.Internal.FileEnumerationService.IFileEntityAsyncEnumerator GetEnumeratorFavoringOpenDocuments (Microsoft.VisualStudio.Shell.Internal.FileEnumerationService.IFileEntityAsyncEnumerator fileEntityEnumerator);
abstract member GetEnumeratorFavoringOpenDocuments : Microsoft.VisualStudio.Shell.Internal.FileEnumerationService.IFileEntityAsyncEnumerator -> Microsoft.VisualStudio.Shell.Internal.FileEnumerationService.IFileEntityAsyncEnumerator
Public Function GetEnumeratorFavoringOpenDocuments (fileEntityEnumerator As IFileEntityAsyncEnumerator) As IFileEntityAsyncEnumerator
Parameters
- fileEntityEnumerator
- IFileEntityAsyncEnumerator
Defines an enumerator where opened document must be merged to.
Returns
Returns an enumerator to get the next discovered file asynchronously.
Remarks
This enumerates everything in fileEntityEnumerator
but return all the open documents first, when they are part of the given fileEntityEnumerator
.
The current document, if there is one and it is eligible, will always be first.