ShareUriBuilder Class
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.
The ShareUriBuilder class provides a convenient way to modify the contents of a Uri instance to point to different Azure Storage resources like an account, share, or file.
For more information, see Naming and Referencing Shares, Directories, Files, and Metadata.
public class ShareUriBuilder
type ShareUriBuilder = class
Public Class ShareUriBuilder
- Inheritance
-
ShareUriBuilder
Constructors
ShareUriBuilder(Uri) |
Initializes a new instance of the ShareUriBuilder class with the specified Uri. |
Properties
AccountName |
Gets or sets the Azure Storage account name. |
DirectoryOrFilePath |
Gets or sets the path of the directory or file. The value defaults to Empty if not present in the Uri. Example: "mydirectory/myfile" |
Host |
Gets or sets the Domain Name System (DNS) host name or IP address of a server. Example: "account.file.core.windows.net" |
Port |
Gets or sets the port number of the URI. |
Query |
Gets or sets any query information included in the URI that's not relevant to addressing Azure storage resources. |
Sas |
Gets or sets the Shared Access Signature query parameters, or null if not present in the Uri. |
Scheme |
Gets or sets the scheme name of the URI. Example: "https" |
ShareName |
Gets or sets the name of a file storage share. The value defaults to Empty if not present in the Uri. |
Snapshot |
Gets or sets the name of a file snapshot. The value defaults to Empty if not present in the Uri. |
Methods
ToString() |
Returns the display string for the specified ShareUriBuilder instance. |
ToUri() |
Returns the Uri constructed from the ShareUriBuilder's fields. The Query property contains the SAS and additional query parameters. |
Applies to
Azure SDK for .NET