EditorOptionAttribute.TryGetOptionValue(IEnumerable, String, Object) Metod

Definition

Avgör om samlingen innehåller ett specifikt attribut och returnerar attributvärdet.

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

Parametrar

attributes
IEnumerable

Samlingen med attribut.

optionName
String

Namnet på attributet som ska kontrolleras.

optionValue
Object

När den här metoden returnerar innehåller värdet för attributet. Den här parametern skickas oinitierad.

Returer

trueom det angivna attributet finns i samlingen; annars . false

Gäller för