共用方式為


FilePathUtilities Class

Definition

Important

This API is not CLS-compliant.

Static utilities for getting and setting file paths.

public ref class FilePathUtilities sealed
public ref class FilePathUtilities sealed
class FilePathUtilities sealed
[System.CLSCompliant(false)]
public sealed class FilePathUtilities
public sealed class FilePathUtilities
[<System.CLSCompliant(false)>]
type FilePathUtilities = class
type FilePathUtilities = class
Public NotInheritable Class FilePathUtilities
Inheritance
FilePathUtilities
Attributes

Constructors

FilePathUtilities()

Initializes a new instance of FilePathUtilities.

Methods

GetFileExtension(String)

This method returns the file extension in lower case, including the "." and trims any blanks or null characters from the string. Null's can creep in via interop if we get a badly formed BSTR

GetFilePath(IntPtr)

Get file path for an object that is implementing IVsUserData.

GetFilePath(IVsTextLines)

Get path for text buffer.

Applies to