Udostępnij za pośrednictwem


MetaDataAttribute Class

Definition

Generates the //meta-data element within AndroidManifest.xml.

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

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

MetaDataAttribute(String)

Constructs and initializes a new MetaDataAttribute instance with the specified meta-data name.

Properties

Name

The name of the meta-data to generate.

Resource

A reference to a resource to use as the value.

Value

The value of the meta-data.

Applies to