ObjectPropertyProvider.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.
Retrieves a value that indicates whether the property value is in the object property.
Overloads
TryGetPropertyValue(String, Object) |
Retrieves a value that indicates the property value to get. This class cannot be inherited. |
TryGetPropertyValue<T>(String, T) |
Retrieves a value that indicates whether the property value is in the object property. This class cannot be inherited. |
TryGetPropertyValue(String, Object)
Retrieves a value that indicates the property value to get. This class cannot be inherited.
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 the name of the property.
- value
- Object
The object that represents the value of the property.
Returns
true
for the value that indicates the property value to get in the object property; otherwise, false
.
Implements
Applies to
TryGetPropertyValue<T>(String, T)
Retrieves a value that indicates whether the property value is in the object property. This class cannot be inherited.
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 generic Type of the value.
Parameters
- name
- String
The name of the property.
- value
- T
The object that represents the value of the property.
Returns
true
if the property value is in the object property; otherwise, false
.