DataBus.TryGetPropertyValue 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.
Attempts to get the property value.
Overloads
TryGetPropertyValue(String, Object) |
Attempts to get the property value with a specified name and value. |
TryGetPropertyValue<T>(String, T) |
Attempts to get the property value with a specified name and type. |
TryGetPropertyValue(String, Object)
Attempts to get the property value with a specified name and value.
public:
virtual bool TryGetPropertyValue(System::String ^ name, [Runtime::InteropServices::Out] System::Object ^ % value);
public bool TryGetPropertyValue (string name, out object value);
abstract member TryGetPropertyValue : string * obj -> bool
override this.TryGetPropertyValue : string * obj -> bool
Public Function TryGetPropertyValue (name As String, ByRef value As Object) As Boolean
Parameters
- name
- String
A string that represents a name.
- value
- Object
The property value (can be null).
Returns
True
if success; otherwise, false
.
Implements
Applies to
TryGetPropertyValue<T>(String, T)
Attempts to get the property value with a specified name and type.
public:
generic <typename T>
virtual bool TryGetPropertyValue(System::String ^ name, [Runtime::InteropServices::Out] T % value);
public bool TryGetPropertyValue<T> (string name, out T value);
abstract member TryGetPropertyValue : string * 'T -> bool
override this.TryGetPropertyValue : string * 'T -> bool
Public Function TryGetPropertyValue(Of T) (name As String, ByRef value As T) As Boolean
Type Parameters
- T
The type of the property value.
Parameters
- name
- String
A string that represents a name.
- value
- T
The property type (can be null).
Returns
true
if success; otherwise, false
.