DataParameter.IsValidType Method
Retrieves a Boolean value indicating whether the specified data-source-specific type is a valid type.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaración
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
Parameters
- type
Type: System.String
A data-source-specific data type.
Return Value
Type: System.Boolean
Returns true if the specified data-source-specific type is a valid type; otherwise returns 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.
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.