Share via


DataParameter.GetTypeFrom Method

Infers the data source–specific parameter type from a parameter value.

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Protected Overridable Function GetTypeFrom ( _
    value As Object _
) As String
protected virtual string GetTypeFrom(
    Object value
)
protected:
virtual String^ GetTypeFrom(
    Object^ value
)
abstract GetTypeFrom : 
        value:Object -> string  
override GetTypeFrom : 
        value:Object -> string
protected function GetTypeFrom(
    value : Object
) : String

Parameters

Return Value

Type: System.String
The data source–specific type, or nulla null reference (Nothing in Visual Basic) if the value type is not supported.

Remarks

This method is called by the base implementation of OnValueChanged methods.

The OnValueChanging method calls this method to determine whether the value is of a valid type. The OnValueChanged method calls this method to set the type appropriately based on the new value (unless the type was explicitly set otherwise).

The base implementation of this method returns the .NET Framework type name.

.NET Framework Security

See Also

Reference

DataParameter Class

Microsoft.VisualStudio.Data.Framework Namespace