Editar

Compartilhar via


XamlTypeInvoker.GetEnumeratorMethod Method

Definition

Returns an object representing a method that can enumerate over items.

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

Returns

MethodInfo for an enumerator method, or null.

Remarks

Should return null for cases where XamlType.LookupCollectionKind returns None.

Important

If you are not accessing a fully trusted XAML type system, this method has the potential to report false MethodInfo information to callers.

Notes to Inheritors

The base implementation calls an internal helper method. That helper returns null for cases where a XamlTypeInvoker is based on an unknown XamlType, which includes cases where the UnderlyingType of the XamlType is null. It also returns null for cases where LookupCollectionKind() returns None.

Applies to