PexCreatableByMethodAndSettersAttribute.CreatableByMethodAndSetters.TryGetFactory 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.
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.