Share via


DataParameter.GetTypeFrom Method

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

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.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
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 and OnValueChanged methods.

The OnValueChanging method calls this method to figure out if 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 type name.

.NET Framework Security

See Also

Reference

DataParameter Class

Microsoft.VisualStudio.Data Namespace

GetTypeFrom