EditorOptionAttribute.TryGetOptionValue(IEnumerable, String, Object) 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 whether the collection contains a specific attribute and returns the attribute value.
public:
static bool TryGetOptionValue(System::Collections::IEnumerable ^ attributes, System::String ^ optionName, [Runtime::InteropServices::Out] System::Object ^ % optionValue);
public static bool TryGetOptionValue (System.Collections.IEnumerable attributes, string optionName, out object optionValue);
static member TryGetOptionValue : System.Collections.IEnumerable * string * obj -> bool
Public Shared Function TryGetOptionValue (attributes As IEnumerable, optionName As String, ByRef optionValue As Object) As Boolean
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.