AttributedModelServices.SatisfyImportsOnce Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Belirtilen bölümü oluşturur.
Aşırı Yüklemeler
| SatisfyImportsOnce(ICompositionService, Object) |
Belirtilen bölümü, belirtilen oluşturma hizmetini kullanarak, yeniden ayrıştırma devre dışı bırakılarak oluşturur. |
| SatisfyImportsOnce(ICompositionService, Object, ReflectionContext) |
Belirtilen bölümü, belirtilen oluşturma hizmetini kullanarak, yeniden konumlandırma devre dışı bırakılarak ve belirtilen yansıma bağlamını kullanarak oluşturur. |
SatisfyImportsOnce(ICompositionService, Object)
- Kaynak:
- AttributedModelServices.cs
- Kaynak:
- AttributedModelServices.cs
- Kaynak:
- AttributedModelServices.cs
- Kaynak:
- AttributedModelServices.cs
Belirtilen bölümü, belirtilen oluşturma hizmetini kullanarak, yeniden ayrıştırma devre dışı bırakılarak oluşturur.
public:
[System::Runtime::CompilerServices::Extension]
static System::ComponentModel::Composition::Primitives::ComposablePart ^ SatisfyImportsOnce(System::ComponentModel::Composition::ICompositionService ^ compositionService, System::Object ^ attributedPart);
public static System.ComponentModel.Composition.Primitives.ComposablePart SatisfyImportsOnce (this System.ComponentModel.Composition.ICompositionService compositionService, object attributedPart);
static member SatisfyImportsOnce : System.ComponentModel.Composition.ICompositionService * obj -> System.ComponentModel.Composition.Primitives.ComposablePart
<Extension()>
Public Function SatisfyImportsOnce (compositionService As ICompositionService, attributedPart As Object) As ComposablePart
Parametreler
- compositionService
- ICompositionService
Kullanılacak kompozisyon hizmeti.
- attributedPart
- Object
Oluşturacak kısım.
Döndürülenler
Oluşturulan bölüm.
Özel durumlar
compositionService veya attributedPartnull.
Oluşturma sırasında bir hata oluştu. Errors oluşan bir hata koleksiyonu içerir.
Açıklamalar
Sıradan kompozisyondan farklı olarak, bu yöntemle oluşturulan parçaların,compositionService arkasındaki katalog değişirse geçerli kalacağı garanti değildir.
Şunlara uygulanır
SatisfyImportsOnce(ICompositionService, Object, ReflectionContext)
- Kaynak:
- AttributedModelServices.cs
- Kaynak:
- AttributedModelServices.cs
- Kaynak:
- AttributedModelServices.cs
- Kaynak:
- AttributedModelServices.cs
Belirtilen bölümü, belirtilen oluşturma hizmetini kullanarak, yeniden konumlandırma devre dışı bırakılarak ve belirtilen yansıma bağlamını kullanarak oluşturur.
public:
[System::Runtime::CompilerServices::Extension]
static System::ComponentModel::Composition::Primitives::ComposablePart ^ SatisfyImportsOnce(System::ComponentModel::Composition::ICompositionService ^ compositionService, System::Object ^ attributedPart, System::Reflection::ReflectionContext ^ reflectionContext);
public static System.ComponentModel.Composition.Primitives.ComposablePart SatisfyImportsOnce (this System.ComponentModel.Composition.ICompositionService compositionService, object attributedPart, System.Reflection.ReflectionContext reflectionContext);
static member SatisfyImportsOnce : System.ComponentModel.Composition.ICompositionService * obj * System.Reflection.ReflectionContext -> System.ComponentModel.Composition.Primitives.ComposablePart
<Extension()>
Public Function SatisfyImportsOnce (compositionService As ICompositionService, attributedPart As Object, reflectionContext As ReflectionContext) As ComposablePart
Parametreler
- compositionService
- ICompositionService
Kullanılacak kompozisyon hizmeti.
- attributedPart
- Object
Oluşturacak kısım.
- reflectionContext
- ReflectionContext
Bölümün yansıma bağlamı.
Döndürülenler
Oluşturulan bölüm.
Özel durumlar
reflectionContext
null.
Oluşturma sırasında bir hata oluştu. Errors oluşan bir hata koleksiyonu içerir.