Aracılığıyla paylaş


ObservableCollectionExtensions.ToBindingList<T> Yöntem

Tanım

Verilen ObservableCollection<T>ile eşitlenmiş durumda kalan bir BindingList<T> uygulama döndürür.

public static System.ComponentModel.BindingList<T> ToBindingList<T> (this System.Collections.ObjectModel.ObservableCollection<T> source) where T : class;
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("BindingList raises ListChanged events with PropertyDescriptors. PropertyDescriptors require unreferenced code.")]
public static System.ComponentModel.BindingList<T> ToBindingList<T> (this System.Collections.ObjectModel.ObservableCollection<T> source) where T : class;
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("BindingList raises ListChanged events with PropertyDescriptors. PropertyDescriptors require unreferenced code.")]
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Requires calling MakeGenericType on the property descriptor's type")]
public static System.ComponentModel.BindingList<T> ToBindingList<T> (this System.Collections.ObjectModel.ObservableCollection<T> source) where T : class;
static member ToBindingList : System.Collections.ObjectModel.ObservableCollection<'T (requires 'T : null)> -> System.ComponentModel.BindingList<'T (requires 'T : null)> (requires 'T : null)
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("BindingList raises ListChanged events with PropertyDescriptors. PropertyDescriptors require unreferenced code.")>]
static member ToBindingList : System.Collections.ObjectModel.ObservableCollection<'T (requires 'T : null)> -> System.ComponentModel.BindingList<'T (requires 'T : null)> (requires 'T : null)
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("BindingList raises ListChanged events with PropertyDescriptors. PropertyDescriptors require unreferenced code.")>]
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Requires calling MakeGenericType on the property descriptor's type")>]
static member ToBindingList : System.Collections.ObjectModel.ObservableCollection<'T (requires 'T : null)> -> System.ComponentModel.BindingList<'T (requires 'T : null)> (requires 'T : null)
<Extension()>
Public Function ToBindingList(Of T As Class) (source As ObservableCollection(Of T)) As BindingList(Of T)

Tür Parametreleri

T

Öğe türü.

Parametreler

source
ObservableCollection<T>

Bağlama listesinin eşitlenmiş olarak kalacağı koleksiyon.

Döndürülenler

Bağlama listesi.

Öznitelikler

Şunlara uygulanır