Partager via


FilePathUtilities.GetFilePath Method (IVsTextLines)

Gets the file path from an IVsTextLines buffer.

This API is not CLS-compliant. The CLS-compliant alternative is [None].

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public Shared Function GetFilePath ( _
    textLines As IVsTextLines _
) As String
[CLSCompliantAttribute(false)]
public static string GetFilePath(
    IVsTextLines textLines
)
[CLSCompliantAttribute(false)]
public:
static String^ GetFilePath(
    IVsTextLines^ textLines
)
[<CLSCompliantAttribute(false)>]
static member GetFilePath : 
        textLines:IVsTextLines -> string
public static function GetFilePath(
    textLines : IVsTextLines
) : String

Parameters

Return Value

Type: String
The file path.

.NET Framework Security

See Also

Reference

FilePathUtilities Class

GetFilePath Overload

Microsoft.VisualStudio.Package Namespace