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
- name
Type: System.String
The name of the property to retrieve.
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.