EditorOptionAttribute.TryGetOptionValue(IEnumerable, String, Object) メソッド

定義

指定した属性がコレクションに含まれているかどうかを判断し、その属性値を返します。

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

パラメーター

attributes
IEnumerable

属性のコレクション。

optionName
String

確認対象の属性の名前。

optionValue
Object

このメソッドが返されると、属性の値が格納されます。 このパラメーターは初期化せずに渡されます。

戻り値

Boolean

指定した属性がコレクションに見つかった場合は true。それ以外の場合は false

適用対象