ShareFileClient.CreateHardLink Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
NFS only. Creates a hard link to the file file specified by path.
public virtual Azure.Response<Azure.Storage.Files.Shares.Models.ShareFileInfo> CreateHardLink(string targetFile, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateHardLink : string * Azure.Storage.Files.Shares.Models.ShareFileRequestConditions * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Files.Shares.Models.ShareFileInfo>
override this.CreateHardLink : string * Azure.Storage.Files.Shares.Models.ShareFileRequestConditions * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Files.Shares.Models.ShareFileInfo>
Public Overridable Function CreateHardLink (targetFile As String, Optional conditions As ShareFileRequestConditions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ShareFileInfo)
Parameters
- targetFile
- String
Path of the file to create the hard link to, not including the share. For example: "targetDirectory/targetSubDirectory/.../targetFile"
- conditions
- ShareFileRequestConditions
Optional ShareFileRequestConditions to add conditions on creating the hard link.
- cancellationToken
- CancellationToken
Optional CancellationToken to propagate notifications that the operation should be cancelled.
Returns
A Response<T> describing the state of the hard link.
Remarks
A RequestFailedException will be thrown if a failure occurs.
Applies to
Azure SDK for .NET