EditorOptionAttribute::TryGetOptionValue Method (IEnumerable^, String^, Object^%)

.NET Framework (current version)
 

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

Namespace:   System.Activities.Presentation.PropertyEditing
Assembly:  System.Activities.Presentation (in System.Activities.Presentation.dll)

public:
static bool TryGetOptionValue(
	IEnumerable^ attributes,
	String^ optionName,
	[OutAttribute] Object^% optionValue
)

Parameters

attributes
Type: System.Collections::IEnumerable^

The collection of attributes.

optionName
Type: System::String^

The name of the attribute to check.

optionValue
Type: System::Object^%

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

Return Value

Type: System::Boolean

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

.NET Framework
Available since 4.5
Return to top
Show: