TryGetOptionValue Method
Collapse the table of content
Expand the table of content

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,
	out object optionValue


Type: System.Collections.IEnumerable

The collection of attributes.

Type: System.String

The name of the attribute to check.

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
© 2016 Microsoft