PartBuilder.ImportProperties Metódus

Definíció

Megadja az importálandó egyező típusok tulajdonságait.

Túlterhelések

Name Description
ImportProperties(Predicate<PropertyInfo>)

Megadja az importálandó egyező típusok tulajdonságait.

ImportProperties(Predicate<PropertyInfo>, Action<PropertyInfo,ImportBuilder>)

Megadja azoknak az egyező típusoknak a tulajdonságait, amelyeket importálóként kell megjelölni, és konfigurációs információkat nyújt az eredményként kapott importálásokról.

ImportProperties<T>(Predicate<PropertyInfo>)

Megadja azoknak a megfelelő típusoknak a tulajdonságait, amelyeket importálásként kell megjelölni a megadott szerződéstípus használatával.

ImportProperties<T>(Predicate<PropertyInfo>, Action<PropertyInfo,ImportBuilder>)

Megadja azoknak a megfelelő típusoknak a tulajdonságait, amelyeket importálóként kell megjelölni a megadott szerződéstípus használatával, és konfigurációs információkat nyújt az eredményként kapott importálásokról.

ImportProperties(Predicate<PropertyInfo>)

Megadja az importálandó egyező típusok tulajdonságait.

public:
 System::ComponentModel::Composition::Registration::PartBuilder ^ ImportProperties(Predicate<System::Reflection::PropertyInfo ^> ^ propertyFilter);
public System.ComponentModel.Composition.Registration.PartBuilder ImportProperties(Predicate<System.Reflection.PropertyInfo> propertyFilter);
member this.ImportProperties : Predicate<System.Reflection.PropertyInfo> -> System.ComponentModel.Composition.Registration.PartBuilder
Public Function ImportProperties (propertyFilter As Predicate(Of PropertyInfo)) As PartBuilder

Paraméterek

propertyFilter
Predicate<PropertyInfo>

Egy tulajdonságkészletet meghatározó predikátum.

Válaszok

Az aktuális objektum a láncolás engedélyezéséhez.

Kivételek

propertyFilter az null.

A következőre érvényes:

ImportProperties(Predicate<PropertyInfo>, Action<PropertyInfo,ImportBuilder>)

Megadja azoknak az egyező típusoknak a tulajdonságait, amelyeket importálóként kell megjelölni, és konfigurációs információkat nyújt az eredményként kapott importálásokról.

public:
 System::ComponentModel::Composition::Registration::PartBuilder ^ ImportProperties(Predicate<System::Reflection::PropertyInfo ^> ^ propertyFilter, Action<System::Reflection::PropertyInfo ^, System::ComponentModel::Composition::Registration::ImportBuilder ^> ^ importConfiguration);
public System.ComponentModel.Composition.Registration.PartBuilder ImportProperties(Predicate<System.Reflection.PropertyInfo> propertyFilter, Action<System.Reflection.PropertyInfo,System.ComponentModel.Composition.Registration.ImportBuilder> importConfiguration);
member this.ImportProperties : Predicate<System.Reflection.PropertyInfo> * Action<System.Reflection.PropertyInfo, System.ComponentModel.Composition.Registration.ImportBuilder> -> System.ComponentModel.Composition.Registration.PartBuilder
Public Function ImportProperties (propertyFilter As Predicate(Of PropertyInfo), importConfiguration As Action(Of PropertyInfo, ImportBuilder)) As PartBuilder

Paraméterek

propertyFilter
Predicate<PropertyInfo>

Egy tulajdonságkészletet meghatározó predikátum.

importConfiguration
Action<PropertyInfo,ImportBuilder>

Az importálás konfigurációs adatait tartalmazó objektum. Az alapértelmezett érték a null.

Válaszok

Az aktuális objektum a láncolás engedélyezéséhez.

Kivételek

propertyFilter az null.

A következőre érvényes:

ImportProperties<T>(Predicate<PropertyInfo>)

Megadja azoknak a megfelelő típusoknak a tulajdonságait, amelyeket importálásként kell megjelölni a megadott szerződéstípus használatával.

public:
generic <typename T>
 System::ComponentModel::Composition::Registration::PartBuilder ^ ImportProperties(Predicate<System::Reflection::PropertyInfo ^> ^ propertyFilter);
public System.ComponentModel.Composition.Registration.PartBuilder ImportProperties<T>(Predicate<System.Reflection.PropertyInfo> propertyFilter);
member this.ImportProperties : Predicate<System.Reflection.PropertyInfo> -> System.ComponentModel.Composition.Registration.PartBuilder
Public Function ImportProperties(Of T) (propertyFilter As Predicate(Of PropertyInfo)) As PartBuilder

Típusparaméterek

T

A szerződés típusa.

Paraméterek

propertyFilter
Predicate<PropertyInfo>

Egy tulajdonságkészletet meghatározó predikátum.

Válaszok

Az aktuális objektum a láncolás engedélyezéséhez.

Kivételek

propertyFilter az null.

A következőre érvényes:

ImportProperties<T>(Predicate<PropertyInfo>, Action<PropertyInfo,ImportBuilder>)

Megadja azoknak a megfelelő típusoknak a tulajdonságait, amelyeket importálóként kell megjelölni a megadott szerződéstípus használatával, és konfigurációs információkat nyújt az eredményként kapott importálásokról.

public:
generic <typename T>
 System::ComponentModel::Composition::Registration::PartBuilder ^ ImportProperties(Predicate<System::Reflection::PropertyInfo ^> ^ propertyFilter, Action<System::Reflection::PropertyInfo ^, System::ComponentModel::Composition::Registration::ImportBuilder ^> ^ importConfiguration);
public System.ComponentModel.Composition.Registration.PartBuilder ImportProperties<T>(Predicate<System.Reflection.PropertyInfo> propertyFilter, Action<System.Reflection.PropertyInfo,System.ComponentModel.Composition.Registration.ImportBuilder> importConfiguration);
member this.ImportProperties : Predicate<System.Reflection.PropertyInfo> * Action<System.Reflection.PropertyInfo, System.ComponentModel.Composition.Registration.ImportBuilder> -> System.ComponentModel.Composition.Registration.PartBuilder
Public Function ImportProperties(Of T) (propertyFilter As Predicate(Of PropertyInfo), importConfiguration As Action(Of PropertyInfo, ImportBuilder)) As PartBuilder

Típusparaméterek

T

A szerződés típusa.

Paraméterek

propertyFilter
Predicate<PropertyInfo>

Egy tulajdonságkészletet meghatározó predikátum.

importConfiguration
Action<PropertyInfo,ImportBuilder>

Az importálás konfigurációs adatait tartalmazó objektum. Az alapértelmezett érték a null.

Válaszok

Az aktuális objektum a láncolás engedélyezéséhez.

Kivételek

propertyFilter az null.

A következőre érvényes: