IVsProject4::ContainsFileEndingWith Method (String^, Int32)

 

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)

int ContainsFileEndingWith(
	String^ pszEndingWith,
	[OutAttribute] int% pfDoesContain
)

Parameters

pszEndingWith
Type: System::String^

The ending.

pfDoesContain
Type: System::Int32

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

Return Value

Type: System::Int32

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

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.

Return to top
Show: