IFileTypeManagementService.IsRegisteredType 方法

适用于版本2

指示内容类型是否已注册。

命名空间:  Microsoft.WebMatrix.Extensibility.Editor
程序集:  Microsoft.WebMatrix.Extensibility(在 Microsoft.WebMatrix.Extensibility.dll 中)

语法

声明
Function IsRegisteredType ( _
    contentTypeName As String _
) As Boolean
用法
Dim instance As IFileTypeManagementService 
Dim contentTypeName As String 
Dim returnValue As Boolean 

returnValue = instance.IsRegisteredType(contentTypeName)
bool IsRegisteredType(
    string contentTypeName
)
bool IsRegisteredType(
    String^ contentTypeName
)
abstract IsRegisteredType : 
        contentTypeName:string -> bool
function IsRegisteredType(
    contentTypeName : String
) : boolean

参数

返回值

类型:System.Boolean
如果内容类型已注册,则为 true;否则为 false。

请参阅

参考

IFileTypeManagementService 接口

Microsoft.WebMatrix.Extensibility.Editor 命名空间