Freigeben über


FeatureManager.CreateFeatureProviders-Methode (Type, Type)

Erstellt eine Reihe von Featureanbietern, die für den angegebenen Typ vorhanden sind, und gibt sie zurück.

Namespace:  Microsoft.Windows.Design.Features
Assembly:  Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)

Syntax

'Declaration
Public Function CreateFeatureProviders ( _
    featureProviderType As Type, _
    type As Type _
) As IEnumerable(Of FeatureProvider)
public IEnumerable<FeatureProvider> CreateFeatureProviders(
    Type featureProviderType,
    Type type
)
public:
IEnumerable<FeatureProvider^>^ CreateFeatureProviders(
    Type^ featureProviderType, 
    Type^ type
)
member CreateFeatureProviders : 
        featureProviderType:Type * 
        type:Type -> IEnumerable<FeatureProvider> 
public function CreateFeatureProviders(
    featureProviderType : Type, 
    type : Type
) : IEnumerable<FeatureProvider>

Parameter

  • featureProviderType
    Typ: System.Type
    Der zurückgegebene Featureanbietertyp.
  • type
    Typ: System.Type
    Der Typ, für den Featureanbieter erstellt werden.

Rückgabewert

Typ: System.Collections.Generic.IEnumerable<FeatureProvider>
Eine Enumeration von Featureanbietern.Wenn für featureProviderType oder type keine Funktionsanbieter verfügbar sind, gibt diese Methode eine leere Enumeration zurück.

Ausnahmen

Ausnahme Bedingung
ArgumentNullException

featureProviderType oder type ist nullNULL-Verweis (Nothing in Visual Basic).

ArgumentException

featureProviderType wird nicht von FeatureProvider abgeleitet.

.NET Framework-Sicherheit

Siehe auch

Referenz

FeatureManager Klasse

CreateFeatureProviders-Überladung

Microsoft.Windows.Design.Features-Namespace

FeatureProvider

FeatureConnector<TFeatureProviderType>

Weitere Ressourcen

Featureanbieter und Featureverbindungen

WPF-Designer-Erweiterbarkeit