检索指示指定的数据源特定类型的 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。