Język

InstrumentationAttribute Class

Definition

Declares an instrumentation component in the generated Android manifest.

[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)]
[System.Serializable]
public sealed class InstrumentationAttribute : Attribute, Java.Interop.IJniNameProviderAttribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)>]
[<System.Serializable>]
type InstrumentationAttribute = class
    inherit Attribute
    interface IJniNameProviderAttribute
Inheritance
InstrumentationAttribute
Attributes
Implements

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

Name Description
InstrumentationAttribute()

Initializes a new instrumentation manifest attribute.

Properties

Name Description
FunctionalTest

Gets or sets whether the instrumentation declares that it should run as a functional test.

HandleProfiling

Gets or sets whether the instrumentation manages the start and end of profiling itself.

Icon

Gets or sets the drawable resource used as the instrumentation's icon.

Label

Gets or sets the label shown for the instrumentation.

Name

Gets or sets the explicit class name in the instrumentation declaration.

RoundIcon

Gets or sets the drawable resource used as the instrumentation's round icon.

TargetPackage

Gets or sets the application package that the instrumentation runs against.

TargetProcesses

Gets or sets the target application's processes to instrument.

Explicit Interface Implementations

Name Description
IJniNameProviderAttribute.Name

Gets the attribute's name with a null value replaced by an empty string.

Applies to