다음을 통해 공유


PexCreatableByMethodAndSettersAttribute.CreatableByMethodAndSetters.TryGetFactory Method

Definition

Tries to get the factory method.

protected:
 override bool TryGetFactory([Runtime::InteropServices::Out] System::Reflection::MethodBase ^ % factory, [Runtime::InteropServices::Out] Microsoft::ExtendedReflection::Metadata::Field ^ % factoryReceiver, [Runtime::InteropServices::Out] cli::array <Microsoft::ExtendedReflection::Metadata::Field ^> ^ % factoryArguments, [Runtime::InteropServices::Out] cli::array <Microsoft::ExtendedReflection::Metadata::Field ^> ^ % remainingFields);
protected override bool TryGetFactory (out System.Reflection.MethodBase factory, out Microsoft.ExtendedReflection.Metadata.Field factoryReceiver, out Microsoft.ExtendedReflection.Metadata.Field[] factoryArguments, out Microsoft.ExtendedReflection.Metadata.Field[] remainingFields);
override this.TryGetFactory : MethodBase * Field * Field[] * Field[] -> bool
Protected Overrides Function TryGetFactory (ByRef factory As MethodBase, ByRef factoryReceiver As Field, ByRef factoryArguments As Field(), ByRef remainingFields As Field()) As Boolean

Parameters

factory
MethodBase

The factory.

factoryReceiver
Microsoft.ExtendedReflection.Metadata.Field

The factory receiver.

factoryArguments
Microsoft.ExtendedReflection.Metadata.Field[]

The factory arguments.

remainingFields
Microsoft.ExtendedReflection.Metadata.Field[]

The remaining fields.

Returns

Applies to