PexChoose.TryCreateDelegate(TypeEx, Delegate) Yöntem

Tanım

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

Boolean

Temsilci başarıyla oluşturulduysa true , aksi takdirde false döndürür.

Açıklamalar

Temsilci, Out veya ref parametrelerini destekleyemez.

Şunlara uygulanır