Partager via


FilePathUtilities.GetFilePath Method

Definition

Overloads

GetFilePath(IVsTextLines)

Get path for text buffer.

GetFilePath(IntPtr)

Get file path for an object that is implementing IVsUserData.

GetFilePath(IVsTextLines)

Important

This API is not CLS-compliant.

Get path for text buffer.

public:
 static System::String ^ GetFilePath(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ textLines);
public:
 static Platform::String ^ GetFilePath(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ textLines);
 static std::wstring GetFilePath(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & textLines);
[System.CLSCompliant(false)]
public static string GetFilePath (Microsoft.VisualStudio.TextManager.Interop.IVsTextLines textLines);
public static string GetFilePath (Microsoft.VisualStudio.TextManager.Interop.IVsTextLines textLines);
[<System.CLSCompliant(false)>]
static member GetFilePath : Microsoft.VisualStudio.TextManager.Interop.IVsTextLines -> string
static member GetFilePath : Microsoft.VisualStudio.TextManager.Interop.IVsTextLines -> string
Public Shared Function GetFilePath (textLines As IVsTextLines) As String

Parameters

textLines
IVsTextLines

The text buffer.

Returns

The path of the text buffer.

Attributes

Applies to

GetFilePath(IntPtr)

Get file path for an object that is implementing IVsUserData.

public:
 static System::String ^ GetFilePath(IntPtr unknown);
public static string GetFilePath (IntPtr unknown);
static member GetFilePath : nativeint -> string
Public Shared Function GetFilePath (unknown As IntPtr) As String

Parameters

unknown
IntPtr

nativeint

Reference to an IUnknown interface.

Returns

The file path

Applies to