Partager via


PexInstrumentTypeAttribute Class

Definition

Instrument a given type; name of type may be given for non-exported types.

public ref class PexInstrumentTypeAttribute sealed : Microsoft::Pex::Framework::Instrumentation::PexInstrumentTypeAttributeBase
[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)]
public sealed class PexInstrumentTypeAttribute : Microsoft.Pex.Framework.Instrumentation.PexInstrumentTypeAttributeBase
[<System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)>]
type PexInstrumentTypeAttribute = class
    inherit PexInstrumentTypeAttributeBase
Public NotInheritable Class PexInstrumentTypeAttribute
Inherits PexInstrumentTypeAttributeBase
Inheritance
Attributes

Constructors

PexInstrumentTypeAttribute(String, String)

Initializes a new instance of the PexInstrumentTypeAttribute class.

PexInstrumentTypeAttribute(Type, String)

Initializes a new instance of the PexInstrumentTypeAttribute class.

PexInstrumentTypeAttribute(Type)

Initializes a new instance of the PexInstrumentTypeAttribute class.

Properties

DisablingEnvironmentVariable

Gets or sets the name of the environment variable that can be set to disable this attribute

(Inherited from PexMonitorSettingsAttributeBase)
InstrumentationLevel

Gets or sets the instrumentation level.

(Inherited from PexInstrumentTypeAttributeBase)
IsDisabled

Gets a value indicating if these settings were disabled

(Inherited from PexMonitorSettingsAttributeBase)
NoNestedTypes

Gets or sets a value indicating whether nested types should be instrumented as well

(Inherited from PexInstrumentTypeAttributeBase)
TargetType

Gets the type of the target.

Methods

AddTypeAndNestedType(SafeSet<TypeDefinition>, TypeDefinition)

Recursively adds type,

(Inherited from PexInstrumentTypeAttributeBase)
CacheTargetTypes()

Caches the target types.

(Inherited from PexInstrumentTypeAttributeBase)
CacheTargetTypes(SafeSet<TypeDefinition>)

Caches the target types.

(Inherited from PexInstrumentTypeAttributeBase)
CreateInstrumentationProvider() (Inherited from PexInstrumentTypeAttributeBase)
GetService(Type)

Gets a service if available

(Inherited from PexMonitorSettingsAttributeBase)
GetTargetTypes()

Gets the list of Type to instrument

(Inherited from PexInstrumentTypeAttributeBase)

Explicit Interface Implementations

IServiceProvider.GetService(Type) (Inherited from PexMonitorSettingsAttributeBase)

Applies to