IVsProject4.ContainsFileWithItemType(String, Int32) Method

Definition

Determines whether the project contains a file whose MSBuild ItemType matches the specified type.

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

Parameters

pszItemType
String

The item type.

pfDoesContain
Int32

true if the project contains at least one file of the given type. The comparison is case-insensitive.

Returns

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

Remarks

This method should be used if the caller wants to know only 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