IContentType.IsOfType 方法

确定此内容类型是否具有指定的基内容类型。

命名空间:  Microsoft.VisualStudio.Utilities
程序集:  Microsoft.VisualStudio.CoreUtility(在 Microsoft.VisualStudio.CoreUtility.dll 中)

语法

声明
Function IsOfType ( _
    type As String _
) As Boolean
bool IsOfType(
    string type
)
bool IsOfType(
    String^ type
)
abstract IsOfType : 
        type:string -> bool
function IsOfType(
    type : String
) : boolean

参数

  • type
    类型:String

    基内容类型的名称。

返回值

类型:Boolean
true ,如果 type派生指定的此内容类型从虚拟机或模板,否则 false。

.NET Framework 安全性

请参阅

参考

IContentType 接口

Microsoft.VisualStudio.Utilities 命名空间