FileSystemOperationsExtensions.DirectCreate Method (IFileSystemOperations, String, String, Stream, FileCreateParameters)
Directly creates a file with the specified content, without requiring a redirect. This API is NOT webhdfs compliant. It should be used only by tools that do not rely on webhdfs interoperability.
Namespace: Microsoft.Azure.Management.DataLake.StoreFileSystem
Assembly: Microsoft.Azure.Management.DataLake.StoreFileSystem (in Microsoft.Azure.Management.DataLake.StoreFileSystem.dll)
Syntax
public static AzureOperationResponse DirectCreate(
this IFileSystemOperations operations,
string filePath,
string accountName,
Stream streamContents,
FileCreateParameters parameters
)
public:
[ExtensionAttribute]
static AzureOperationResponse^ DirectCreate(
IFileSystemOperations^ operations,
String^ filePath,
String^ accountName,
Stream^ streamContents,
FileCreateParameters^ parameters
)
static member DirectCreate :
operations:IFileSystemOperations *
filePath:string *
accountName:string *
streamContents:Stream *
parameters:FileCreateParameters -> AzureOperationResponse
<ExtensionAttribute>
Public Shared Function DirectCreate (
operations As IFileSystemOperations,
filePath As String,
accountName As String,
streamContents As Stream,
parameters As FileCreateParameters
) As AzureOperationResponse
Parameters
operations
Type: Microsoft.Azure.Management.DataLake.StoreFileSystem.IFileSystemOperationsReference to the Microsoft.Azure.Management.DataLake.StoreFileSystem.IFileSystemOperations.
filePath
Type: System.StringRequired. The path to the file to create.
accountName
Type: System.StringRequired. The name of the Data Lake Store account to create the file in
streamContents
Type: System.IO.StreamRequired. The file contents to include when creating the file. This parameter is required, however it can be an empty stream. Just not null.
parameters
Type: Microsoft.Azure.Management.DataLake.StoreFileSystem.Models.FileCreateParametersOptional. The optional parameters to use when creating the file
Return Value
Type: Microsoft.Azure.AzureOperationResponse
A standard service response including an HTTP status code and request ID.
See Also
FileSystemOperationsExtensions Class
Microsoft.Azure.Management.DataLake.StoreFileSystem Namespace
Return to top