KeyVaultTokenCallback usage VB.NET

  • Thread starter Thread starter George Hendrickson
  • Start date Start date
G

George Hendrickson

Guest
Im trying to convert this to VB.NET but can't seem to get the syntax right. VS is complaining about the KeyVaultTokenCallback where it says it needs an "AddressOf" to method or lambda expression. Unfortunately, the web link doesn't provide a VB.NET example. Any help is appreciated.

This example comes from Service-to-service authentication to Azure Key Vault using .NET

using Microsoft.Azure.Services.AppAuthentication;
using Microsoft.Azure.KeyVault;

// Instantiate a new KeyVaultClient object, with an access token to Key Vault
var azureServiceTokenProvider1 = new AzureServiceTokenProvider();
var kv = new KeyVaultClient(new KeyVaultClient.AuthenticationCallback(azureServiceTokenProvider1.KeyVaultTokenCallback));

Continue reading...
 
Back
Top