다음을 통해 공유


IOpenDocumentEnumeratorFactory.GetEnumeratorFavoringOpenDocuments Method

Definition

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.

Applies to