Partager via


IVsCodeDefViewContext.GetFileName(UInt32, String) Method

Definition

Retrieves the file for an item based on its index in a list of context items.

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

Parameters

iItem
UInt32

[in] Index of the context item.

pbstrFilename
String

[out] String containing the file name for the item.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsCodeDefViewContext::GetFileName(  
   ULONG iItem,   
   BSTR *pbstrFileName  
);  

Applies to