共用方式為


DataParameter.IsValidType 方法

擷取表示指定之資料來源特定型別布林值是有效的型別。

命名空間:  Microsoft.VisualStudio.Data
組件:  Microsoft.VisualStudio.Data (在 Microsoft.VisualStudio.Data.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
    型別:System.String
    一個特定資料來源的資料型別。

傳回值

型別:System.Boolean
如果指定的資料來源特定型別為有效型別,則會傳回 true ;否則會傳回 false。

備註

這個方法是由 OnTypeChanging 會呼叫方法的基底實作。用來決定資料型別是否為參數的目前狀態是有效的。

這個方法的基底實作會傳回 true。

.NET Framework 安全性

請參閱

參考

DataParameter 類別

Microsoft.VisualStudio.Data 命名空間