IVsCodeDefViewContext.GetFileName(UInt32, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
);