XamlTypeInvoker.GetEnumeratorMethod Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기