DataMappedObject.GetProperty<T> Generic Method (String, T)

Retrieves the value of the specified property associated with the current generic concept.

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

Syntax

'宣言
Protected Function GetProperty(Of T) ( _
    name As String, _
    defaultValue As T _
) As T
'使用
Dim name As String
Dim defaultValue As T
Dim returnValue As T

returnValue = Me.GetProperty(name, _
    defaultValue)
protected T GetProperty<T>(
    string name,
    T defaultValue
)
protected:
generic<typename T>
T GetProperty(
    String^ name, 
    T defaultValue
)
JScript does not support generic types or methods.

Type Parameters

  • T

Parameters

  • defaultValue
    Type: T

    The default value of the property to retrieve.

Return Value

Type: T

The property value of the generic type corresponding to the given property name.

Permissions

See Also

Reference

DataMappedObject Class

DataMappedObject Members

GetProperty Overload

Microsoft.VisualStudio.Data.Framework Namespace