Share via


IVsProject4.ContainsFileEndingWith(String, Int32) Method

Definition

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

public:
 int ContainsFileEndingWith(System::String ^ pszEndingWith, [Runtime::InteropServices::Out] int % pfDoesContain);
int ContainsFileEndingWith(std::wstring const & pszEndingWith, [Runtime::InteropServices::Out] int & pfDoesContain);
public int ContainsFileEndingWith (string pszEndingWith, out int pfDoesContain);
abstract member ContainsFileEndingWith : string * int -> int
Public Function ContainsFileEndingWith (pszEndingWith As String, ByRef pfDoesContain As Integer) As Integer

Parameters

pszEndingWith
String

The ending.

pfDoesContain
Int32

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

Returns

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.

Applies to