Partager via


IVsProject4.ContainsFileEndingWith Method

Determines whether the project contains a file with the specified ending.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)

Syntax

'Declaration
Function ContainsFileEndingWith ( _
    pszEndingWith As String, _
    <OutAttribute> ByRef pfDoesContain As Integer _
) As Integer
int ContainsFileEndingWith(
    string pszEndingWith,
    out int pfDoesContain
)
int ContainsFileEndingWith(
    [InAttribute] String^ pszEndingWith, 
    [OutAttribute] int% pfDoesContain
)
abstract ContainsFileEndingWith : 
        pszEndingWith:string * 
        pfDoesContain:int byref -> int
function ContainsFileEndingWith(
    pszEndingWith : String, 
    pfDoesContain : int
) : int

Parameters

  • pszEndingWith
    Type: String

    The ending.

  • pfDoesContain
    Type: Int32%

    [out] true if the project contains at least one file whose name ends with the given string, regardless of case.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

This method should be used only if the caller wants to ask whether such a value exists, but has no interest in the number of ITEMIDs of the matches, because the method returns immediately after finding a single match.

.NET Framework Security

See Also

Reference

IVsProject4 Interface

Microsoft.VisualStudio.Shell.Interop Namespace