ContextWrapper.OpenFileOutput(String, FileCreationMode) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
開啟與此上下文應用程式套件相關的私有檔案以進行撰寫。
[Android.Runtime.Register("openFileOutput", "(Ljava/lang/String;I)Ljava/io/FileOutputStream;", "GetOpenFileOutput_Ljava_lang_String_IHandler")]
public override System.IO.Stream? OpenFileOutput(string? name, Android.Content.FileCreationMode mode);
[<Android.Runtime.Register("openFileOutput", "(Ljava/lang/String;I)Ljava/io/FileOutputStream;", "GetOpenFileOutput_Ljava_lang_String_IHandler")>]
override this.OpenFileOutput : string * Android.Content.FileCreationMode -> System.IO.Stream
參數
- name
- String
要開啟的檔案名稱;無法包含路徑分隔符。
- mode
- FileCreationMode
操作模式。 預設操作使用 0 或 PrivateAndroid.Content.Context.MODE_APPEND 來附加到現有檔案, WorldReadable 並 WorldWriteable 控制權限。
傳回
結果的 FileOutputStream .
- 屬性
例外狀況
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
Java 文件 android.content.ContextWrapper.openFileOutput(java.lang.String, int)。