Partager via


DataMappedObject.GetProperty<T> 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

'Declaration
Protected Function GetProperty(Of T) ( _
    name As String, _
    defaultValue As T _
) As T
protected T GetProperty<T>(
    string name,
    T defaultValue
)
protected:
generic<typename T>
T GetProperty(
    String^ name, 
    T defaultValue
)
member GetProperty : 
        name:string * 
        defaultValue:'T -> 'T 
JScript does not support generic types or methods.

Type Parameters

  • T
    The parameter.

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.

.NET Framework Security

See Also

Reference

DataMappedObject Class

GetProperty Overload

Microsoft.VisualStudio.Data.Framework Namespace