LanguageService.GetFormatFilterList 方法
返回文件扩展名筛选器列出适用于 保存 对话框。
命名空间: Microsoft.VisualStudio.Package
程序集: Microsoft.VisualStudio.Package.LanguageService.9.0(在 Microsoft.VisualStudio.Package.LanguageService.9.0.dll 中)
Microsoft.VisualStudio.Package.LanguageService.10.0(在 Microsoft.VisualStudio.Package.LanguageService.10.0.dll 中)
Microsoft.VisualStudio.Package.LanguageService.11.0(在 Microsoft.VisualStudio.Package.LanguageService.11.0.dll 中)
Microsoft.VisualStudio.Package.LanguageService(在 Microsoft.VisualStudio.Package.LanguageService.dll 中)
语法
声明
Public MustOverride Function GetFormatFilterList As String
public abstract string GetFormatFilterList()
返回值
类型:System.String
如果成功,则返回包含文件扩展名筛选器的字符串;否则,返回空字符串。
备注
此方法提供文件扩展名筛选列表。 保存 对话框的格式。 扩展的格式对声明和扩展,每个元素分隔的换行符或竖线 ("|")。 例如,设置筛选器为 C++ 和 C# 文件可能是格式设置 “C++ 文件 (*.cpp) \n*.cpp\nC # 文件 (*.cs) \ n*.cs \ n”。 Visual Studio 始终预置筛选列表 “的所有文件 (*.*) \n*.*\nText Files (*.txt) \ n*.txt \ n”与从此方法返回。
该基方法始终返回空字符串。 这意味着 保存 对话框将显示所有文件和文本文件的 Visual Studio 添加的筛选器。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。