PexChoose.TryCreateDelegate(TypeEx, Delegate) 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 türde bir temsilci oluşturmaya çalışır.
public:
static bool TryCreateDelegate(Microsoft::ExtendedReflection::Metadata::TypeEx ^ delegateType, [Runtime::InteropServices::Out] Delegate ^ % delegate);
public static bool TryCreateDelegate (Microsoft.ExtendedReflection.Metadata.TypeEx delegateType, out Delegate delegate);
static member TryCreateDelegate : Microsoft.ExtendedReflection.Metadata.TypeEx * Delegate -> bool
Public Shared Function TryCreateDelegate (delegateType As TypeEx, ByRef delegate As Delegate) As Boolean
Parametreler
- delegateType
- Microsoft.ExtendedReflection.Metadata.TypeEx
Temsilcinin türü.
- delegate
- Delegate
Temsilciyi alır.
Döndürülenler
Temsilci başarıyla oluşturulduysa true , aksi takdirde false döndürür.
Açıklamalar
Temsilci, Out veya ref parametrelerini destekleyemez.