Android.Provider.DocumentsProvider.CreateDocument Method
Create a new document and return its newly generated NoType:android/provider/DocumentsContract$Document;Href=../../../reference/android/provider/DocumentsContract.Document.html#COLUMN_DOCUMENT_ID.

Syntax

[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)

Parameters

parentDocumentId
the parent directory to create the new document under.
mimeType
the concrete MIME type associated with the new document. If the MIME type is not supported, the provider must throw.
displayName
the display name of the new document. The provider may alter this name to meet any internal constraints, such as avoiding conflicting names.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.FileNotFoundException

Remarks

Requirements

Namespace: Android.Provider
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0