Aracılığıyla paylaş


AssociatedMetadataProvider.FilterAttributes Yöntem

Tanım

Türetilmiş sınıfların öznitelik listesini filtrelemesine olanak sağlar.

protected:
 virtual System::Collections::Generic::IEnumerable<Attribute ^> ^ FilterAttributes(Type ^ containerType, System::ComponentModel::PropertyDescriptor ^ propertyDescriptor, System::Collections::Generic::IEnumerable<Attribute ^> ^ attributes);
protected virtual System.Collections.Generic.IEnumerable<Attribute> FilterAttributes (Type containerType, System.ComponentModel.PropertyDescriptor propertyDescriptor, System.Collections.Generic.IEnumerable<Attribute> attributes);
abstract member FilterAttributes : Type * System.ComponentModel.PropertyDescriptor * seq<Attribute> -> seq<Attribute>
override this.FilterAttributes : Type * System.ComponentModel.PropertyDescriptor * seq<Attribute> -> seq<Attribute>
Protected Overridable Function FilterAttributes (containerType As Type, propertyDescriptor As PropertyDescriptor, attributes As IEnumerable(Of Attribute)) As IEnumerable(Of Attribute)

Parametreler

containerType
Type

Kapsayıcının türü.

propertyDescriptor
PropertyDescriptor

Özellik tanımlayıcı.

attributes
IEnumerable<Attribute>

Öznitelikler.

Döndürülenler

IEnumerable<Attribute>

Özniteliklerin listesi.

Açıklamalar

AssociatedMetadataProviderTemel sınıftaki kod tüm öznitelikleri döndürür. Bu yöntem, türetilmiş sınıfların öznitelikleri filtrelemesine olanak sağlar.

Şunlara uygulanır