ShareClient.GetFileClientByFileId(String) 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.
Create a new ShareFileClient object that addresses a file by its file ID rather than by its path. The new ShareFileClient uses the same request policy pipeline as the ShareClient.
A file ID can be obtained from the FileId returned by Get Properties, or from a change feed event.
Clients that address a file by its file ID only support a subset of the file operations. Unsupported operations throw InvalidOperationException.
public virtual Azure.Storage.Files.Shares.ShareFileClient GetFileClientByFileId(string fileId);
abstract member GetFileClientByFileId : string -> Azure.Storage.Files.Shares.ShareFileClient
override this.GetFileClientByFileId : string -> Azure.Storage.Files.Shares.ShareFileClient
Public Overridable Function GetFileClientByFileId (fileId As String) As ShareFileClient
Parameters
- fileId
- String
The file ID of the file.
Returns
A new ShareFileClient instance.