AdoDotNetParameter.IsValidType 方法

检索指示指定的数据源特定类型是否的布尔值是有效的类型。

命名空间:  Microsoft.VisualStudio.Data.AdoDotNet
程序集:  Microsoft.VisualStudio.Data(在 Microsoft.VisualStudio.Data.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
如果方法成功调用在输入字符串,的 Parse 返回 true ;否则返回 false。

备注

此方法由 OnTypeChanging 方案的基实现。用于确定数据类型是否为参数的当前状态是有效的。此实现通过尝试调用在输入字符串中 Parse 方法来验证类型和返回 true,如果搜索成功。

此方法的基实现返回 true。

.NET Framework 安全性

请参见

参考

AdoDotNetParameter 类

Microsoft.VisualStudio.Data.AdoDotNet 命名空间