共用方式為


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 命名空間