AdoDotNetParameter.GetTypeFrom Method
Returns a AnsiString for a nulla null reference (Nothing in Visual Basic) or DBNull value; alternatively maps the value type to a DbType value and returns the string equivalent.
Namespace: Microsoft.VisualStudio.Data.AdoDotNet
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaración
Protected Overrides Function GetTypeFrom ( _
value As Object _
) As String
protected override string GetTypeFrom(
Object value
)
protected:
virtual String^ GetTypeFrom(
Object^ value
) override
abstract GetTypeFrom :
value:Object -> string
override GetTypeFrom :
value:Object -> string
protected override function GetTypeFrom(
value : Object
) : String
Parameters
- value
Type: System.Object
A candidate parameter value.
Return Value
Type: System.String
Returns the data-source-specific type, or returns nulla null reference (Nothing in Visual Basic) if the value type is not supported.
Remarks
This method is called by the base implementation of the OnValueChanging and OnValueChanged methods. It calls the OnValueChanging method to figure out if the value is of a valid type. It calls the OnValueChanged method to set the type appropriately based on the new value (unless the type was explicitly set otherwise).
The base implementation of this method calls GetTypeFromon the object value and returns the .NET type name.
.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.