Compartir a través de


FeatureManager.CreateFeatureProviders (Método) (Type, Type, Predicate<Type>)

Crea y devuelve un conjunto de proveedores de características que existen para el tipo especificado.

Espacio de nombres:  Microsoft.Windows.Design.Features
Ensamblado:  Microsoft.Windows.Design.Extensibility (en Microsoft.Windows.Design.Extensibility.dll)

Sintaxis

'Declaración
Public Overridable Function CreateFeatureProviders ( _
    featureProviderType As Type, _
    type As Type, _
    match As Predicate(Of Type) _
) As IEnumerable(Of FeatureProvider)
public virtual IEnumerable<FeatureProvider> CreateFeatureProviders(
    Type featureProviderType,
    Type type,
    Predicate<Type> match
)
public:
virtual IEnumerable<FeatureProvider^>^ CreateFeatureProviders(
    Type^ featureProviderType, 
    Type^ type, 
    Predicate<Type^>^ match
)
abstract CreateFeatureProviders : 
        featureProviderType:Type * 
        type:Type * 
        match:Predicate<Type> -> IEnumerable<FeatureProvider> 
override CreateFeatureProviders : 
        featureProviderType:Type * 
        type:Type * 
        match:Predicate<Type> -> IEnumerable<FeatureProvider> 
public function CreateFeatureProviders(
    featureProviderType : Type, 
    type : Type, 
    match : Predicate<Type>
) : IEnumerable<FeatureProvider>

Parámetros

  • featureProviderType
    Tipo: System.Type
    Tipo de proveedor de características que se va a devolver.
  • type
    Tipo: System.Type
    Tipo para el que crear los proveedores de características.
  • match
    Tipo: System.Predicate<Type>
    Predicado que se va a usar al crear proveedores de características.Si el predicado devuelve true, el proveedor de características se incluirá en la enumeración.

Valor devuelto

Tipo: System.Collections.Generic.IEnumerable<FeatureProvider>
Enumeración de proveedores de características.Si no hay disponible ningún proveedor de características para featureProviderType, type o match, este método devuelve una enumeración vacía.

Excepciones

Excepción Condición
ArgumentNullException

featureProviderType, type o match es nullreferencia null (Nothing en Visual Basic).

ArgumentException

featureProviderType no deriva de FeatureProvider.

Seguridad de .NET Framework

Vea también

Referencia

FeatureManager Clase

CreateFeatureProviders (Sobrecarga)

Microsoft.Windows.Design.Features (Espacio de nombres)

FeatureProvider

FeatureConnector<TFeatureProviderType>

Otros recursos

Proveedores de características y conectores de características

Introducción a la extensibilidad de WPF Designer