AdoDotNetParameter.IsValidType Method
Retrieves a Boolean value indicating whether the specified data source–specific type is a valid type.
Namespace: Microsoft.VisualStudio.Data.Framework.AdoDotNet
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'Declaration
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
Parameters
type
Type: System.StringA data source–specific data type.
Return Value
Type: System.Boolean
true if the method successfully calls Parse on the input string; otherwise, false.
Remarks
This method is called by the base implementation of the OnTypeChanging method. It is used to determine whether a data type is valid for the current state of the parameter. This implementation validates the type by attempting to call the Parse method on the input string and returns true if it succeeds.
The base implementation of this method returns true.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.