IVsProject4.GetFilesEndingWith(String, UInt32, UInt32[], UInt32) Yöntem

Tanım

Adı belirtilen dizeyle biten dosyaların bir alt öğe dizisini döndürür. Eşleşme büyük/küçük harfe duyarsızdır.

public:
 int GetFilesEndingWith(System::String ^ pszEndingWith, System::UInt32 celt, cli::array <System::UInt32> ^ rgItemids, [Runtime::InteropServices::Out] System::UInt32 % pcActual);
int GetFilesEndingWith(std::wstring const & pszEndingWith, unsigned int celt, std::Array <unsigned int> const & rgItemids, [Runtime::InteropServices::Out] unsigned int & pcActual);
public int GetFilesEndingWith (string pszEndingWith, uint celt, uint[] rgItemids, out uint pcActual);
abstract member GetFilesEndingWith : string * uint32 * uint32[] * uint32 -> int
Public Function GetFilesEndingWith (pszEndingWith As String, celt As UInteger, rgItemids As UInteger(), ByRef pcActual As UInteger) As Integer

Parametreler

pszEndingWith
String

Bitiş

celt
UInt32

Dizideki öğelerin (istenen) sayısı.

rgItemids
UInt32[]

Itemıds dizisi.

pcActual
UInt32

Dizide döndürülen gerçek öğe sayısı.

Döndürülenler

Int32

Yöntem başarılı olursa, döndürür S_OK . Başarısız olursa, bir hata kodu döndürür.

Örnekler

Son derece yaygın bir düzende yöntemi iki kez çağırmak, ilk kez öğe sayısı ve dizi için 0 ' ı geçen ve ikinci kez doğru boyutlu bir diziyi ve gerçek öğe sayısını geçen ve aşağıdaki gibi (okunabilirlik için hata denetimini atlama) bir kez çağırmalıdır:

hr = pIVsProject4->GetFilesEndingWith(szEndingWith, 0, NULL, &cExpected);  
VSITEMID *rgItemids = ::CoTaskMemAlloc(cExpected * sizeof(VSITEMID));  
hr = pIVsProject4->GetFilesEndingWith(szEndingWith, cExpected, rgItemids, &cActual);  

Açıklamalar

celtSıfır ise ve rgItemids null ise, eşleşen dosya sayısı ' de döndürülür pcActual . celtSıfır değilse, null olmamalı rgItemids veya E_POINTER döndürülmemelidir.

Şunlara uygulanır