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 konumlandı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
Belirtilen bölümü, belirtilen oluşturma hizmetini kullanarak, yeniden konumlandı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 bölüm.
Döndürülenler
Oluşturulan bölüm.
Özel durumlar
compositionService
veya attributedPart
şeklindedir null
.
Oluşturma sırasında bir hata oluştu. Errors oluşan hataların bir koleksiyonunu içerir.
Açıklamalar
Sıradan bileşimden farklı olarak, bu yöntemle oluşturulan parçaların, kataloğun değişmesicompositionService
durumunda geçerli kalacağı garanti değildir.
Şunlara uygulanır
SatisfyImportsOnce(ICompositionService, Object, ReflectionContext)
- 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 bölüm.
- reflectionContext
- ReflectionContext
Bölümün yansıma bağlamı.
Döndürülenler
Oluşturulan bölüm.
Özel durumlar
reflectionContext
, null
değeridir.
Oluşturma sırasında bir hata oluştu. Errors oluşan hataların bir koleksiyonunu içerir.