EditorOptionAttribute.TryGetOptionValue(IEnumerable, String, Object) Method

Definition

Determines whether the collection contains a specific attribute and returns the attribute value.

C#
public static bool TryGetOptionValue(System.Collections.IEnumerable attributes, string optionName, out object optionValue);

Parameters

attributes
IEnumerable

The collection of attributes.

optionName
String

The name of the attribute to check.

optionValue
Object

When this method returns, contains the value of the attribute. This parameter is passed uninitialized.

Returns

true if the specified attribute is found in the collection; otherwise, false.

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1