EditorOptionAttribute.TryGetOptionValue(IEnumerable, String, Object) Metoda

Definice

Určuje, zda kolekce obsahuje konkrétní atribut a vrátí hodnotu atributu.

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

Parametry

attributes
IEnumerable

Kolekce atributů.

optionName
String

Název atributu, který chcete zkontrolovat.

optionValue
Object

Když tato metoda vrátí, obsahuje hodnotu atributu . Tento parametr se předává neinicializovaný.

Návraty

truePokud je zadaný atribut nalezen v kolekci; v opačném případě . false

Platí pro