AdoDotNetParameter.IsValidType 方法
擷取指示特定資料來源的型別是否 Boolean 值是有效的型別。
命名空間: Microsoft.VisualStudio.Data.Framework.AdoDotNet
組件: Microsoft.VisualStudio.Data.Framework (在 Microsoft.VisualStudio.Data.Framework.dll 中)
語法
'宣告
Protected Overrides Function IsValidType ( _
type As String _
) As Boolean
protected override bool IsValidType(
string type
)
protected:
virtual bool IsValidType(
String^ type
) override
abstract IsValidType :
type:string -> bool
override IsValidType :
type:string -> bool
protected override function IsValidType(
type : String
) : boolean
參數
- type
型別:System.String
特定資料來源的資料型別。
傳回值
型別:System.Boolean
true ,如果方法成功呼叫在輸入字串中 Parse ;否則, false。
備註
這個方法是由 OnTypeChanging 會呼叫方法的基底實作。用來決定資料型別是否為參數的目前狀態是有效的。這個實作會嘗試在此輸入字串中 Parse 方法驗證型別並傳回 true ,如果成功。
這個方法的基底實作會傳回 true。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。