Gets the file path from an IVsTextLines buffer.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'宣言
<CLSCompliantAttribute(False)> _
Public Shared Function GetFilePath ( _
textLines As IVsTextLines _
) As String
'使用
Dim textLines As IVsTextLines
Dim returnValue As String
returnValue = FilePathUtilities.GetFilePath(textLines)
[CLSCompliantAttribute(false)]
public static string GetFilePath(
IVsTextLines textLines
)
[CLSCompliantAttribute(false)]
public:
static String^ GetFilePath(
IVsTextLines^ textLines
)
public static function GetFilePath(
textLines : IVsTextLines
) : String
Parameters
textLines
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextLinesThe IVsTextLines buffer.
Return Value
Type: System.String
The file path.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.