Bagikan melalui


PartBuilder.ImportProperties Metode

Definisi

Menentukan sekumpulan properti pada jenis pencocokan yang harus diimpor.

Overload

ImportProperties(Predicate<PropertyInfo>)

Menentukan sekumpulan properti pada jenis pencocokan yang harus diimpor.

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

Menentukan sekumpulan properti pada jenis pencocokan yang harus ditandai sebagai impor, dan menyediakan informasi konfigurasi untuk impor yang dihasilkan.

ImportProperties<T>(Predicate<PropertyInfo>)

Menentukan sekumpulan properti pada jenis pencocokan yang harus ditandai sebagai impor menggunakan jenis kontrak yang ditentukan.

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

Menentukan sekumpulan properti pada jenis yang cocok yang harus ditandai sebagai impor dengan menggunakan jenis kontrak yang ditentukan, dan menyediakan informasi konfigurasi untuk impor yang dihasilkan.

ImportProperties(Predicate<PropertyInfo>)

Sumber:
PartBuilder.cs
Sumber:
PartBuilder.cs
Sumber:
PartBuilder.cs

Menentukan sekumpulan properti pada jenis pencocokan yang harus diimpor.

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

Parameter

propertyFilter
Predicate<PropertyInfo>

Predikat yang menentukan sekumpulan properti.

Mengembalikan

Objek saat ini, untuk memungkinkan penautan.

Pengecualian

propertyFilteradalah null.

Berlaku untuk

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

Sumber:
PartBuilder.cs
Sumber:
PartBuilder.cs
Sumber:
PartBuilder.cs

Menentukan sekumpulan properti pada jenis pencocokan yang harus ditandai sebagai impor, dan menyediakan informasi konfigurasi untuk impor yang dihasilkan.

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

Parameter

propertyFilter
Predicate<PropertyInfo>

Predikat yang menentukan sekumpulan properti.

importConfiguration
Action<PropertyInfo,ImportBuilder>

Objek yang berisi informasi konfigurasi tentang impor. Nilai defaultnya adalah null.

Mengembalikan

Objek saat ini, untuk memungkinkan penautan.

Pengecualian

propertyFilteradalah null.

Berlaku untuk

ImportProperties<T>(Predicate<PropertyInfo>)

Sumber:
PartBuilder.cs
Sumber:
PartBuilder.cs
Sumber:
PartBuilder.cs

Menentukan sekumpulan properti pada jenis pencocokan yang harus ditandai sebagai impor menggunakan jenis kontrak yang ditentukan.

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

Jenis parameter

T

Jenis kontrak.

Parameter

propertyFilter
Predicate<PropertyInfo>

Predikat yang menentukan sekumpulan properti.

Mengembalikan

Objek saat ini, untuk memungkinkan penautan.

Pengecualian

propertyFilteradalah null.

Berlaku untuk

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

Sumber:
PartBuilder.cs
Sumber:
PartBuilder.cs
Sumber:
PartBuilder.cs

Menentukan sekumpulan properti pada jenis yang cocok yang harus ditandai sebagai impor dengan menggunakan jenis kontrak yang ditentukan, dan menyediakan informasi konfigurasi untuk impor yang dihasilkan.

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

Jenis parameter

T

Jenis kontrak.

Parameter

propertyFilter
Predicate<PropertyInfo>

Predikat yang menentukan sekumpulan properti.

importConfiguration
Action<PropertyInfo,ImportBuilder>

Objek yang berisi informasi konfigurasi tentang impor. Nilai defaultnya adalah null.

Mengembalikan

Objek saat ini, untuk memungkinkan penautan.

Pengecualian

propertyFilteradalah null.

Berlaku untuk