Share via


XamlTypeInvoker.GetEnumeratorMethod メソッド

定義

アイテムを列挙できるメソッドを表すオブジェクトを返します。

public:
 virtual System::Reflection::MethodInfo ^ GetEnumeratorMethod();
public virtual System.Reflection.MethodInfo GetEnumeratorMethod ();
abstract member GetEnumeratorMethod : unit -> System.Reflection.MethodInfo
override this.GetEnumeratorMethod : unit -> System.Reflection.MethodInfo
Public Overridable Function GetEnumeratorMethod () As MethodInfo

戻り値

列挙子メソッドの MethodInfo、または null

注釈

XamlType.LookupCollectionKind を返nullす場合は を返すNone必要があります。

重要

完全に信頼された XAML 型システムにアクセスしていない場合、このメソッドは、呼び出し元に誤った MethodInfo 情報を報告する可能性があります。

注意 (継承者)

基本実装は、内部ヘルパー メソッドを呼び出します。 そのヘルパーは、 がXamlTypeInvoker不明な に基づいている場合に を返nullします。これには、 XamlType の が であるnullケースがUnderlyingTypeXamlTypeまれます。 また、 が を null 返す場合 LookupCollectionKind() も が返されます None

適用対象