IVsProject4::ContainsFileWithItemType Method (String^, Int32)
Visual Studio 2015
Determines whether the project contains a file whose MSBuild ItemType matches the specified type.
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
Parameters
- pszItemType
-
Type:
System::String^
The item type.
- pfDoesContain
-
Type:
System::Int32
true if the project contains at least one file of the given type. The comparison is case-insensitive.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
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.
Show: