Share via


ShellUtility.FindOpenedFiles Method (String, IServiceProvider)

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

This API is not CLS-compliant. 

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public Shared Function FindOpenedFiles ( _
    fileExtension As String, _
    serviceProvider As IServiceProvider _
) As Collection(Of String)
[CLSCompliantAttribute(false)]
public static Collection<string> FindOpenedFiles(
    string fileExtension,
    IServiceProvider serviceProvider
)
[CLSCompliantAttribute(false)]
public:
static Collection<String^>^ FindOpenedFiles(
    String^ fileExtension, 
    IServiceProvider^ serviceProvider
)
[<CLSCompliantAttribute(false)>]
static member FindOpenedFiles : 
        fileExtension:string * 
        serviceProvider:IServiceProvider -> Collection<string> 
public static function FindOpenedFiles(
    fileExtension : String, 
    serviceProvider : IServiceProvider
) : Collection<String>

Parameters

  • fileExtension
    Type: String

    The file extension of files to find

  • serviceProvider
    Type: IServiceProvider

    ServiceProvider providing the IVsRunningDocumentTable service.

Return Value

Type: Collection<String>

.NET Framework Security

See Also

Reference

ShellUtility Class

FindOpenedFiles Overload

Microsoft.VisualStudio.Modeling.Shell Namespace