EditorOptionAttribute.TryGetOptionValue(IEnumerable, String, Object) Methode

Definition

Bestimmt, ob die Sammlung ein bestimmtes Attribut enthält und den Attributwert zurückgibt.

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

Parameter

attributes
IEnumerable

Die Auflistung der Attribute.

optionName
String

Der Name des zu überprüfenden Attributs.

optionValue
Object

Enthält nach dem Beenden dieser Methode den Attributwert. Dieser Parameter wird nicht initialisiert übergeben.

Gibt zurück

true, wenn sich das angegebene Attribut in der Auflistung befindet, andernfalls false.

Gilt für: