IVsProject4.IsDocumentInProject Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Bir belgenin projede olup olmadığını belirler.
public:
int IsDocumentInProject(System::String ^ pszMkDocument, [Runtime::InteropServices::Out] int % pfFound, cli::array <Microsoft::VisualStudio::Shell::Interop::VSDOCUMENTPRIORITY> ^ pdwPriority, [Runtime::InteropServices::Out] System::UInt32 % pitemid);
int IsDocumentInProject(std::wstring const & pszMkDocument, [Runtime::InteropServices::Out] int & pfFound, std::Array <Microsoft::VisualStudio::Shell::Interop::VSDOCUMENTPRIORITY> const & pdwPriority, [Runtime::InteropServices::Out] unsigned int & pitemid);
public int IsDocumentInProject (string pszMkDocument, out int pfFound, Microsoft.VisualStudio.Shell.Interop.VSDOCUMENTPRIORITY[] pdwPriority, out uint pitemid);
abstract member IsDocumentInProject : string * int * Microsoft.VisualStudio.Shell.Interop.VSDOCUMENTPRIORITY[] * uint32 -> int
Public Function IsDocumentInProject (pszMkDocument As String, ByRef pfFound As Integer, pdwPriority As VSDOCUMENTPRIORITY(), ByRef pitemid As UInteger) As Integer
Parametreler
- pszMkDocument
- String
'ndaki Aranacak belge adının işaretçisi.
- pfFound
- Int32
dışı BOOL için işaretçi. Uygulayıcısı, true belge projede bulunursa, false Aksi takdirde veya bir hata oluşursa, içeriğini olarak ayarlar.
- pdwPriority
- VSDOCUMENTPRIORITY[]
dışı Belge bulunursa değer numaralandırmasından alınan öncelik düzeyi VSDOCUMENTPRIORITY ; değilse sıfır veya bir hata oluşur.
- pitemid
- UInt32
dışı Projenin içindeki belgenin öğe tanımlayıcısına yönelik işaretçi. VSITEMID_ROOTYa da geçerli öğe tanımlayıcısı olmalıdır. Bkz. sabit listesi VSITEMID . Belge bulunursa, uygulayıcısı içeriği bir değere ayarlar; bulunamazsa veya bir hata oluşursa, uygulayıcısı içerikleri sıfıra ayarlar.
Döndürülenler
Yöntem başarılı olursa, döndürür S_OK . Başarısız olursa, bir hata kodu döndürür.
Uygulamalar
Açıklamalar
COM Imzası
Vsshell. IDL dosyasından:
HRESULT IVsProject3::IsDocumentInProject(
[in] LPCOLESTR pszMkDocument,
[out] BOOL *pfFound,
[out] VSDOCUMENTPRIORITY *pdwPriority,
[out] VSITEMID *pitemid
);
Eğer herhangi bir parametre varsa null , null olmayan herhangi bir parametreyi hata ayarına ayarlayın ve döndürün E_INVALIDARG .