DataSourceInformation.GetType Method (String)

Retrieves the Type value indicating the type of a specified property, thus enabling appropriate conversion of a retrieved value to the correct type.

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

Syntax

'Declaration
Protected Overridable Function GetType ( _
    propertyName As String _
) As Type
'Usage
Dim propertyName As String 
Dim returnValue As Type 

returnValue = Me.GetType(propertyName)
protected virtual Type GetType(
    string propertyName
)
protected:
virtual Type^ GetType(
    String^ propertyName
)
protected function GetType(
    propertyName : String
) : Type

Parameters

  • propertyName
    Type: System.String

    The name of the property for which to get the type.

Return Value

Type: System.Type
A Type value indicating the type of a specified property.

Exceptions

Exception Condition
ArgumentNullException

The propertyName parameter is nulla null reference (Nothing in Visual Basic).

Remarks

If the property is not found, this method returns typeof(System.String) as the default type.

.NET Framework Security

See Also

Reference

DataSourceInformation Class

DataSourceInformation Members

GetType Overload

Microsoft.VisualStudio.Data.Framework Namespace