ShareFileCreateOptions Class

Definition

Optional parameters for creating a file.

public class ShareFileCreateOptions
type ShareFileCreateOptions = class
Public Class ShareFileCreateOptions
Inheritance
ShareFileCreateOptions

Constructors

Name Description
ShareFileCreateOptions()

Properties

Name Description
Content

Optional, valid for version 2026-02-06 and later. The content to upload to the file when it is created. Must be less than or equal to 4 MiB in size.

FilePermission

Optional file permission to set on file.

HttpHeaders

Optional standard HTTP header properties that can be set for the file.

Metadata

Optional custom metadata to set for the file.

PosixProperties

Optional properties to set on NFS files. Note that this property is only applicable to files created in NFS shares.

ProgressHandler

Optional, only valid if Content is specified. IProgress<T> to provide progress updates about data transfers.

PropertySemantics

Optional, only applicable to SMB files. How attributes and permissions should be set on the file. New: automatically adds the ARCHIVE file attribute flag to the file and uses Windows create file permissions semantics (ex: inherit from parent). Restore: does not modify file attribute flag and uses Windows update file permissions semantics. If Restore is specified, the file permission must also be provided or PropertySemantics will default to New.

SmbProperties

Optional SMB properties to set for the file. Note that this property is only applicable to files created in SMB shares.

TransferValidation

Optional, only valid if Content is specified. Override settings for this client' TransferValidation settings hashing on uploads.

Applies to