DataBusDataSource.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.
Retrieves a specific property of the DataBusDataSource class.
Overloads
GetProperty<T>(String) |
Retrieves a property of the data source with the specified name. |
GetProperty<T>(String, T) |
Retrieves a property of the data source with the specified name. |
GetProperty<T>(String)
Retrieves a property of the data source with the specified name.
protected:
generic <typename T>
T GetProperty(System::String ^ propertyName);
protected T GetProperty<T> (string propertyName);
member this.GetProperty : string -> 'T
Protected Function GetProperty(Of T) (propertyName As String) As T
Type Parameters
- T
Generic type of the property.
Parameters
- propertyName
- String
The property name.
Returns
The specified name of the property.
Applies to
GetProperty<T>(String, T)
Retrieves a property of the data source with the specified name.
protected:
generic <typename T>
T GetProperty(System::String ^ propertyName, T defaultValue);
protected T GetProperty<T> (string propertyName, T defaultValue);
member this.GetProperty : string * 'T -> 'T
Protected Function GetProperty(Of T) (propertyName As String, defaultValue As T) As T
Type Parameters
- T
The type of a property.
Parameters
- propertyName
- String
A string that represents the property name.
- defaultValue
- T
The default value of the property.
Returns
An object that represents the default value of the property.