Java.Lang.ClassLoader.DefinePackage Method
Defines and returns a new Package using the specified information.

Syntax

[Android.Runtime.Register("definePackage", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/net/URL;)Ljava/lang/Package;", "GetDefinePackage_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_net_URL_Handler")]
protected virtual Package DefinePackage (string name, string specTitle, string specVersion, string specVendor, string implTitle, string implVersion, string implVendor, Java.Net.URL sealBase)

Parameters

name
the name of the package.
specTitle
the title of the specification.
specVersion
the version of the specification.
specVendor
the vendor of the specification.
implTitle
the implementation title.
implVersion
the implementation version.
implVendor
the specification vendor.
sealBase
the URL used to seal this package or null to leave the package unsealed.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif a package with the specified name already exists.

Remarks

Defines and returns a new Package using the specified information. If sealBase is null, the package is left unsealed. Otherwise, the package is sealed using this URL.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1