PropertyDictionary.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.
Determines a value that indicates a property to get.
Overloads
TryGetPropertyValue(String, Object) |
Retrieves a value that indicates a property to get. |
TryGetPropertyValue<T>(String, T) |
Retrieves a value that indicates a property to get using a list of items. |
TryGetPropertyValue(String, Object)
Retrieves a value that indicates a property to get.
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 input that represents the name of the property.
- value
- Object
An object of the property to get.
Returns
true
if a value indicates a property to get; otherwise, false
.
Implements
Applies to
TryGetPropertyValue<T>(String, T)
Retrieves a value that indicates a property to get using a list of items.
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
A generic value for the item.
Parameters
- name
- String
A string value that represents the name of the property to get.
- value
- T
A specified value for the item.
Returns
true
if a value indicates a property to get using a list of items; otherwise, false
.