DocumentsProvider.CreateDocument(String, String, String) Method

Definition

T:Android.Provider.DocumentsContract+Document

[Android.Runtime.Register("createDocument", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "GetCreateDocument_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual string CreateDocument (string parentDocumentId, string mimeType, string displayName);
abstract member CreateDocument : string * string * string -> string
override this.CreateDocument : string * string * string -> string

Parameters

parentDocumentId
String

the parent directory to create the new document under.

mimeType
String

the concrete MIME type associated with the new document. If the MIME type is not supported, the provider must throw.

displayName
String

the display name of the new document. The provider may alter this name to meet any internal constraints, such as avoiding conflicting names.

Returns

String
Attributes

Exceptions

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