Skip to content

Commit eb4a425

Browse files
Edits
1 parent 0f3c950 commit eb4a425

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

articles/storage/files/storage-dotnet-how-to-use-files.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ In this section, you learn how to use `System.IO` to work with Azure Files resou
139139

140140
For more information and examples, see the following resources:
141141

142-
- [File and Stream I/O](/dotnet/standard/io/) overview
142+
- [File and Stream I/O overview](/dotnet/standard/io/)
143143
- [Common I/O tasks](/dotnet/standard/io/common-i-o-tasks)
144144

145145
### Mount a file share
@@ -322,10 +322,16 @@ An easy and secure way to authorize access and connect to Blob Storage is to obt
322322
The following example creates a `ShareClient` object authorized using `DefaultAzureCredential`, then creates a `ShareDirectoryClient` object to work with a directory in the share:
323323
324324
```csharp
325+
using Azure.Identity;
326+
using Azure.Storage.Files.Shares;
327+
using Azure.Storage.Files.Shares.Models;
328+
329+
// ...
330+
325331
string accountName = "<account-name>";
326332
string shareName = "<share-name>";
327333
328-
ShareClientOptions options = new ShareClientOptions()
334+
ShareClientOptions options = new()
329335
{
330336
AllowSourceTrailingDot = true,
331337
AllowTrailingDot = true,

0 commit comments

Comments
 (0)