ShellUtility.FindOpenedFiles Method

Definition

Overloads

FindOpenedFiles(IncludeInResultsCallback, IServiceProvider)

Finds opened files in the solution that match according to the given callback.

FindOpenedFiles(IList<String>, IServiceProvider)

Finds opened files in the solution that end in one of the given file extensions

FindOpenedFiles(String, IServiceProvider)

Finds opened files in the solution that end in the given file extension.

FindOpenedFiles(IncludeInResultsCallback, IServiceProvider)

Important

This API is not CLS-compliant.

Finds opened files in the solution that match according to the given callback.

public:
 static System::Collections::ObjectModel::Collection<System::String ^> ^ FindOpenedFiles(Microsoft::VisualStudio::Modeling::Shell::IncludeInResultsCallback ^ callback, IServiceProvider ^ serviceProvider);
[System.CLSCompliant(false)]
public static System.Collections.ObjectModel.Collection<string> FindOpenedFiles (Microsoft.VisualStudio.Modeling.Shell.IncludeInResultsCallback callback, IServiceProvider serviceProvider);
public static System.Collections.ObjectModel.Collection<string> FindOpenedFiles (Microsoft.VisualStudio.Modeling.Shell.IncludeInResultsCallback callback, IServiceProvider serviceProvider);
[<System.CLSCompliant(false)>]
static member FindOpenedFiles : Microsoft.VisualStudio.Modeling.Shell.IncludeInResultsCallback * IServiceProvider -> System.Collections.ObjectModel.Collection<string>
static member FindOpenedFiles : Microsoft.VisualStudio.Modeling.Shell.IncludeInResultsCallback * IServiceProvider -> System.Collections.ObjectModel.Collection<string>
Public Shared Function FindOpenedFiles (callback As IncludeInResultsCallback, serviceProvider As IServiceProvider) As Collection(Of String)

Parameters

callback
IncludeInResultsCallback

A method that can determine whether a given file should be included in the result set.

serviceProvider
IServiceProvider

ServiceProvider providing the IVsRunningDocumentTable service.

Returns

List of opened files that match according to the given callback.

Attributes

Applies to

FindOpenedFiles(IList<String>, IServiceProvider)

Important

This API is not CLS-compliant.

Finds opened files in the solution that end in one of the given file extensions

public:
 static System::Collections::ObjectModel::Collection<System::String ^> ^ FindOpenedFiles(System::Collections::Generic::IList<System::String ^> ^ fileExtensions, IServiceProvider ^ serviceProvider);
[System.CLSCompliant(false)]
public static System.Collections.ObjectModel.Collection<string> FindOpenedFiles (System.Collections.Generic.IList<string> fileExtensions, IServiceProvider serviceProvider);
public static System.Collections.ObjectModel.Collection<string> FindOpenedFiles (System.Collections.Generic.IList<string> fileExtensions, IServiceProvider serviceProvider);
[<System.CLSCompliant(false)>]
static member FindOpenedFiles : System.Collections.Generic.IList<string> * IServiceProvider -> System.Collections.ObjectModel.Collection<string>
static member FindOpenedFiles : System.Collections.Generic.IList<string> * IServiceProvider -> System.Collections.ObjectModel.Collection<string>
Public Shared Function FindOpenedFiles (fileExtensions As IList(Of String), serviceProvider As IServiceProvider) As Collection(Of String)

Parameters

fileExtensions
IList<String>

The file extensions of files to find

serviceProvider
IServiceProvider

ServiceProvider providing the IVsRunningDocumentTable service.

Returns

List of opened files that end in the given file extensions.

Attributes

Applies to

FindOpenedFiles(String, IServiceProvider)

Important

This API is not CLS-compliant.

Finds opened files in the solution that end in the given file extension.

public:
 static System::Collections::ObjectModel::Collection<System::String ^> ^ FindOpenedFiles(System::String ^ fileExtension, IServiceProvider ^ serviceProvider);
[System.CLSCompliant(false)]
public static System.Collections.ObjectModel.Collection<string> FindOpenedFiles (string fileExtension, IServiceProvider serviceProvider);
public static System.Collections.ObjectModel.Collection<string> FindOpenedFiles (string fileExtension, IServiceProvider serviceProvider);
[<System.CLSCompliant(false)>]
static member FindOpenedFiles : string * IServiceProvider -> System.Collections.ObjectModel.Collection<string>
static member FindOpenedFiles : string * IServiceProvider -> System.Collections.ObjectModel.Collection<string>
Public Shared Function FindOpenedFiles (fileExtension As String, serviceProvider As IServiceProvider) As Collection(Of String)

Parameters

fileExtension
String

The file extension of files to find

serviceProvider
IServiceProvider

ServiceProvider providing the IVsRunningDocumentTable service.

Returns

List of opened files that end in the given file extension.

Attributes

Applies to