ClassLoader.DefinePackage(String, String, String, String, String, String, String, URL) ClassLoader.DefinePackage(String, String, String, String, String, String, String, URL) Method

Definition

Defines and returns a new Package using the specified information.

[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 Java.Lang.Package DefinePackage (string name, string specTitle, string specVersion, string specVendor, string implTitle, string implVersion, string implVendor, Java.Net.URL sealBase);
abstract member DefinePackage : string * string * string * string * string * string * string * Java.Net.URL -> Java.Lang.Package
override this.DefinePackage : string * string * string * string * string * string * string * Java.Net.URL -> Java.Lang.Package

Parameters

name
String String

the name of the package.

specTitle
String String

the title of the specification.

specVersion
String String

the version of the specification.

specVendor
String String

the vendor of the specification.

implTitle
String String

the implementation title.

implVersion
String String

the implementation version.

implVendor
String String

the specification vendor.

sealBase
URL URL

the URL used to seal this package or null to leave the package unsealed.

Returns

Exceptions

if a package with the specified name already exists.

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