Provider.Service.NewInstance(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates and returns a new instance of the implementation described by
this Service.
[Android.Runtime.Register("newInstance", "(Ljava/lang/Object;)Ljava/lang/Object;", "GetNewInstance_Ljava_lang_Object_Handler")]
public virtual Java.Lang.Object NewInstance (Java.Lang.Object constructorParameter);
[<Android.Runtime.Register("newInstance", "(Ljava/lang/Object;)Ljava/lang/Object;", "GetNewInstance_Ljava_lang_Object_Handler")>]
abstract member NewInstance : Java.Lang.Object -> Java.Lang.Object
override this.NewInstance : Java.Lang.Object -> Java.Lang.Object
Parameters
- constructorParameter
- Object
the parameter that is used by the constructor, or null if the implementation does not declare a constructor
parameter.
Returns
- Attributes
Exceptions
if the instance could not be constructed.
if the implementation does not support the specified
constructorParameter.
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.