IVsProject4.ContainsFileEndingWith(String, Int32) Méthode

Définition

Détermine si le projet contient un fichier avec la fin spécifiée.

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

Paramètres

pszEndingWith
String

Fin.

pfDoesContain
Int32

[out] true si le projet contient au moins un fichier dont le nom se termine par la chaîne donnée, indépendamment de la casse.

Retours

Int32

Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.

Remarques

Cette méthode doit être utilisée uniquement si l’appelant souhaite demander si une telle valeur existe, mais n’a aucun intérêt pour le nombre de ItemId des correspondances, car la méthode est retournée immédiatement après la recherche d’une correspondance unique.

S’applique à