PexFactoryMethodAttribute Class
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.
Tags factory methods used to instantiate objects. The method must be visible, static in a static class.
public ref class PexFactoryMethodAttribute sealed : Microsoft::Pex::Framework::PexAttributeBase
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class PexFactoryMethodAttribute : Microsoft.Pex.Framework.PexAttributeBase
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type PexFactoryMethodAttribute = class
inherit PexAttributeBase
Public NotInheritable Class PexFactoryMethodAttribute
Inherits PexAttributeBase
- Inheritance
- Attributes
This attribute is attached to a method to indicate the actual type of the values returned by the method.
Pex |
Initializes a new instance of the PexFactoryMethodAttribute class. |
Pex |
Initializes a new instance of the PexFactoryMethodAttribute class. |
Pex |
Initializes a new instance of the PexFactoryMethodAttribute class. |
Pex |
Initializes a new instance of the PexFactoryMethodAttribute class. |
Try |
Gets the factored type. |
Produit | Versions |
---|---|
Visual Studio SDK | 2017, 2019 |