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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。