ArraySettingItem.TryGetValue<T>(String, T) 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.
Gets the value associated with the specified property converted to the type T
.
public bool TryGetValue<T> (string propertyId, out T value);
member this.TryGetValue : string * 'T -> bool
Public Function TryGetValue(Of T) (propertyId As String, ByRef value As T) As Boolean
Type Parameters
- T
The type of the property to be retrieved.
Parameters
- propertyId
- String
The identifier of the property to get.
- value
- T
When this method returns, the value associated with the specified
property converted to the type T
, if the property is found; otherwise, the
default value for the type of the value parameter.
Returns
true
if the ArraySettingItem contains a property
with the specified identifier and its value can be converted to T
;
otherwise, false
.
Exceptions
If T
is not a supported
type of ArraySettingItemProperty<T>.