編集

次の方法で共有


EditorOptionAttribute.TryGetOptionValue(IEnumerable, String, Object) Method

Definition

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