Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PexFactoryMethodAttribute Class

 

Tags factory methods used to instantiate objects. The method must be visible, static in a static class.

Namespace:   Microsoft.Pex.Framework
Assembly:  Microsoft.Pex.Framework (in Microsoft.Pex.Framework.dll)

System::Object
  System::Attribute
    Microsoft.Pex.Framework::PexAttributeBase
      Microsoft.Pex.Framework::PexFactoryMethodAttribute

[AttributeUsageAttribute(AttributeTargets::Method, AllowMultiple = false, 
	Inherited = true)]
public ref class PexFactoryMethodAttribute sealed : PexAttributeBase

NameDescription
System_CAPS_pubmethodPexFactoryMethodAttribute()

Initializes a new instance of the PexFactoryMethodAttribute class.

System_CAPS_pubmethodPexFactoryMethodAttribute(String^, String^)

Initializes a new instance of the PexFactoryMethodAttribute class.

System_CAPS_pubmethodPexFactoryMethodAttribute(Type^)

Initializes a new instance of the PexFactoryMethodAttribute class.

System_CAPS_pubmethodPexFactoryMethodAttribute(Type^, String^)

Initializes a new instance of the PexFactoryMethodAttribute class.

NameDescription
System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Attribute.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object^)

(Inherited from Attribute.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodTryGetFactoredType(TypeEx^)

Gets the factored type.

This attribute is attached to a method to indicate the actual type of the values returned by the method.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: