DataParameter.IsValidType 方法
擷取表示指定之資料來源的特定結構描述的 Boolean 值是有效的型別。
命名空間: Microsoft.VisualStudio.Data.Framework
組件: Microsoft.VisualStudio.Data.Framework (在 Microsoft.VisualStudio.Data.Framework.dll 中)
語法
'宣告
Protected Overridable Function IsValidType ( _
type As String _
) As Boolean
protected virtual bool IsValidType(
string type
)
protected:
virtual bool IsValidType(
String^ type
)
abstract IsValidType :
type:string -> bool
override IsValidType :
type:string -> bool
protected function IsValidType(
type : String
) : boolean
參數
type
類型:String特定資料來源的資料型別。
傳回值
類型:Boolean
true ,如果指定的資料來源特定型別是有效的型別;則為,否則為 false。
備註
這個方法是由 OnTypeChanging 方法的基底實作會呼叫。 用來判斷資料型別是否為參數的目前狀態為有效。
繼承者注意事項
這個方法的基底實作會傳回 true。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。