IVsSimpleObjectList2.GetSourceContextWithOwnership Yöntem

Tanım

Verilen liste öğesi için bir kaynak dosya adı ve satır numarası döndürür.

public:
 int GetSourceContextWithOwnership(System::UInt32 index, [Runtime::InteropServices::Out] System::String ^ % pbstrFilename, [Runtime::InteropServices::Out] System::UInt32 % pulLineNum);
int GetSourceContextWithOwnership(unsigned int index, [Runtime::InteropServices::Out] std::wstring const & & pbstrFilename, [Runtime::InteropServices::Out] unsigned int & pulLineNum);
public int GetSourceContextWithOwnership (uint index, out string pbstrFilename, out uint pulLineNum);
abstract member GetSourceContextWithOwnership : uint32 * string * uint32 -> int
Public Function GetSourceContextWithOwnership (index As UInteger, ByRef pbstrFilename As String, ByRef pulLineNum As UInteger) As Integer

Parametreler

index
UInt32

'ndaki İlgilendiğiniz liste öğesinin dizinini belirtir.

pbstrFilename
String

dışı Dosya adını içeren bir dize döndürür.

pulLineNum
UInt32

dışı Liste öğesiyle ilişkili bir satır numarası döndürür.

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.

Açıklamalar

COM Imzası

Vsshell80. IDL adresinden:

HRESULT IVsSimpleObjectList2::GetSourceContextWithOwnership(  
   [in]  ULONG  Index,   
   [out] BSTR  *pszFileName,   
   [out] ULONG *pulLineNum  
);  

Bu yöntem, sembol sonuçlarını Bul penceresinde kaynak dosya ve satır numarasını göstermek için kullanılır. E_NOTIMPLBu bilgileri göstermek istemiyorsanız döndürebilirsiniz.

Şunlara uygulanır