IVsProject4::ContainsFileWithItemType Method (String^, Int32)

 

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

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

int ContainsFileWithItemType(
	String^ pszItemType,
	[OutAttribute] int% pfDoesContain
)

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::Int32

If 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.

Return to top
Show: