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
protected virtual Type GetType(
    string propertyName
)
protected:
virtual Type^ GetType(
    String^ propertyName
)
abstract GetType : 
        propertyName:string -> Type 
override GetType : 
        propertyName:string -> Type 
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

GetType Overload

Microsoft.VisualStudio.Data.Framework Namespace