語言

AssociatedMetadataProvider.FilterAttributes 方法

定義

使衍生類別能夠過濾屬性清單。

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)

參數

containerType
Type

容器的種類。

propertyDescriptor
PropertyDescriptor

屬性描述符。

attributes
IEnumerable<Attribute>

屬性。

傳回

一份屬性清單。

備註

基底類別中的 AssociatedMetadataProvider 程式碼會回傳所有屬性。 此方法允許衍生類別過濾屬性。

適用於