你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DataLakeStoreFileSystemClient.CreateFile Method

Definition

Creates a file in ADL store

public void CreateFile (string filePath, string accountName, byte[] contents = default, Microsoft.Azure.DataLake.Store.IfExists overwrite = Microsoft.Azure.DataLake.Store.IfExists.Overwrite);
member this.CreateFile : string * string * byte[] * Microsoft.Azure.DataLake.Store.IfExists -> unit
Public Sub CreateFile (filePath As String, accountName As String, Optional contents As Byte() = Nothing, Optional overwrite As IfExists = Microsoft.Azure.DataLake.Store.IfExists.Overwrite)

Parameters

filePath
String

File Path

accountName
String

Account name

contents
Byte[]

Contents

overwrite
IfExists

True if we are overwriting the file if it exists, false if we want to fail if the file exists

Applies to