PexChoose.TryCreateDelegate(TypeEx, Delegate) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.