获取与指定内容类型关联的文件扩展名的列表。
命名空间: Microsoft.VisualStudio.Utilities
程序集: Microsoft.VisualStudio.CoreUtility(在 Microsoft.VisualStudio.CoreUtility.dll 中)
语法
声明
Function GetExtensionsForContentType ( _
contentType As IContentType _
) As IEnumerable(Of String)
IEnumerable<string> GetExtensionsForContentType(
IContentType contentType
)
IEnumerable<String^>^ GetExtensionsForContentType(
IContentType^ contentType
)
abstract GetExtensionsForContentType :
contentType:IContentType -> IEnumerable<string>
function GetExtensionsForContentType(
contentType : IContentType
) : IEnumerable<String>
参数
contentType
类型:Microsoft.VisualStudio.Utilities.IContentType内容类型。 它不能为 nullnull 引用(在 Visual Basic 中为 Nothing)。
返回值
类型:IEnumerable<String>
与内容类型关联的文件扩展名的列表。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。