다음을 통해 공유


IVsCodeDefViewContext.GetFileName Method

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

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'Declaration
Function GetFileName ( _
    iItem As UInteger, _
    <OutAttribute> ByRef pbstrFilename As String _
) As Integer
int GetFileName(
    uint iItem,
    out string pbstrFilename
)
int GetFileName(
    [InAttribute] unsigned int iItem, 
    [OutAttribute] String^% pbstrFilename
)
abstract GetFileName : 
        iItem:uint32 * 
        pbstrFilename:string byref -> int
function GetFileName(
    iItem : uint, 
    pbstrFilename : String
) : int

Parameters

  • iItem
    Type: UInt32

    [in] Index of the context item.

  • pbstrFilename
    Type: String%

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

Return Value

Type: Int32
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
);

.NET Framework Security

See Also

Reference

IVsCodeDefViewContext Interface

Microsoft.VisualStudio.Shell.Interop Namespace