Läs på engelska

Dela via


Attributes Constructors

Definition

Overloads

Attributes()

Constructs a new, empty Attributes object with default size.

Attributes(Attributes)

Constructs a new Attributes object with the same attribute name-value mappings as in the specified Attributes.

Attributes(Int32)

Constructs a new, empty Attributes object with the specified initial size.

Attributes(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Attributes()

Constructs a new, empty Attributes object with default size.

C#
[Android.Runtime.Register(".ctor", "()V", "")]
public Attributes();
Attributes

Remarks

Constructs a new, empty Attributes object with default size.

Java documentation for java.util.jar.Attributes.Attributes().

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.

Applies to

.NET for Android .NET for Android API 35 och .NET for Android .NET for Android API 34
Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35

Attributes(Attributes)

Constructs a new Attributes object with the same attribute name-value mappings as in the specified Attributes.

C#
[Android.Runtime.Register(".ctor", "(Ljava/util/jar/Attributes;)V", "")]
public Attributes(Java.Util.Jar.Attributes? attr);

Parameters

attr
Attributes

the specified Attributes

Attributes

Remarks

Constructs a new Attributes object with the same attribute name-value mappings as in the specified Attributes.

Java documentation for java.util.jar.Attributes.Attributes(java.util.jar.Attributes).

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.

Applies to

.NET for Android .NET for Android API 35 och .NET for Android .NET for Android API 34
Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35

Attributes(Int32)

Constructs a new, empty Attributes object with the specified initial size.

C#
[Android.Runtime.Register(".ctor", "(I)V", "")]
public Attributes(int size);

Parameters

size
Int32

the initial number of attributes

Attributes

Remarks

Constructs a new, empty Attributes object with the specified initial size.

Java documentation for java.util.jar.Attributes.Attributes(int).

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.

Applies to

.NET for Android .NET for Android API 35 och .NET for Android .NET for Android API 34
Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35

Attributes(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

C#
protected Attributes(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);

Parameters

javaReference
IntPtr

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

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.

Applies to

.NET for Android .NET for Android API 35 och .NET for Android .NET for Android API 34
Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35