DataMappedObject.GetProperty Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetProperty<T>(String) |
Retrieves the value of the specified property associated with the current generic concept. |
GetProperty<T>(String, T) |
Retrieves the value of the specified property associated with the current generic concept. |
GetProperty<T>(String)
Retrieves the value of the specified property associated with the current generic concept.
protected:
generic <typename T>
T GetProperty(System::String ^ name);
protected T GetProperty<T> (string name);
member this.GetProperty : string -> 'T
Protected Function GetProperty(Of T) (name As String) As T
Type Parameters
- T
The parameter.
Parameters
- name
- String
The name of the property to retrieve.
Returns
The property value of the generic type corresponding to the given property name.
Applies to
GetProperty<T>(String, T)
Retrieves the value of the specified property associated with the current generic concept.
protected:
generic <typename T>
T GetProperty(System::String ^ name, T defaultValue);
protected T GetProperty<T> (string name, T defaultValue);
member this.GetProperty : string * 'T -> 'T
Protected Function GetProperty(Of T) (name As String, defaultValue As T) As T
Type Parameters
- T
The parameter.
Parameters
- name
- String
The name of the property to retrieve.
- defaultValue
- T
The default value of the property to retrieve.
Returns
The property value of the generic type corresponding to the given property name.