From f691934184ef6e98a09704a8a4d1477496c0214c Mon Sep 17 00:00:00 2001 From: Heath Stewart Date: Wed, 28 Aug 2019 15:22:11 -0700 Subject: [PATCH] Fix samples that do not compile Addresses issues raised in #7189 and #7193 where the samples do not compile. These are not fixes, as we'll address the API issues in track 2 preview 4. --- sdk/keyvault/Azure.Security.KeyVault.Secrets/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/keyvault/Azure.Security.KeyVault.Secrets/README.md b/sdk/keyvault/Azure.Security.KeyVault.Secrets/README.md index 215212728c00d..91a06428244c1 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Secrets/README.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Secrets/README.md @@ -126,10 +126,10 @@ Console.WriteLine(secret.Value); ``` ### Update an existing Secret -`Update` updates a secret previously stored in the Key Vault. +`Update` updates a secret previously stored in the Key Vault. Only the attributes of the secret are updated. To update the value, call `SecretClient.Set` on a `Secret` with the same name. ```c# -Secret secret = new Secret("secret-name"); +Secret secret = new Secret("secret-name", "secret-value"); // Clients may specify the content type of a secret to assist in interpreting the secret data when it's retrieved secret.ContentType = "text/plain"; @@ -156,12 +156,12 @@ Console.WriteLine(secret.Value); ``` ### List secrets -This example lists all the secrets in the specified Key Vault. +This example lists all the secrets in the specified Key Vault. The value is not returned when listing all secrets. You will need to call `SecretClient.Get` to retrive the value. ```c# IEnumerable> allSecrets = client.GetSecrets(); - foreach (Secret secret in allSecrets) + foreach (SecretBase secret in allSecrets) { Console.WriteLine(secret.Name); }