Language

UsesLibraryAttribute Class

Definition

Declares a shared-library dependency in the application manifest.

[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)]
[System.Serializable]
public sealed class UsesLibraryAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)>]
[<System.Serializable>]
type UsesLibraryAttribute = class
    inherit Attribute
Inheritance
UsesLibraryAttribute
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

Name Description
UsesLibraryAttribute()

Initializes a shared-library dependency declaration.

UsesLibraryAttribute(String, Boolean)

Initializes a named library dependency with an explicit required setting.

UsesLibraryAttribute(String)

Initializes a dependency on the named shared library.

Properties

Name Description
Name

Gets or sets the shared-library name in the dependency declaration.

Required

Gets or sets whether the shared library is mandatory for the application.

Applies to