次の方法で共有


PexChoose.TryCreateDelegate(TypeEx, Delegate) Method

Definition

Attempts to create a delegate of a specified type.

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

Parameters

delegateType
Microsoft.ExtendedReflection.Metadata.TypeEx

The delegate's type.

delegate
Delegate

Receives the delegate.

Returns

Returns true if the delegate was successfully created and false otherwise.

Remarks

The delegate cannot support out or ref parameters.

Applies to