1
私は紺碧に取り組んでいます。紺色のstorageUriにパラメータを渡す方法を教えてください。パラメータをストレージに渡す方法Uri?
ここには5つのパラメータcredientials、blob、queue、table、file があります。どのようにパラメータstorageuriを渡すのですか?下記のコードをご確認ください。
enter code here
Microsoft.WindowsAzure.Storage.CloudStorageAccount storageAccount = null;
string AccountName = RoleEnvironment.GetConfigurationSettingValue("AccountName");
string AccountKey = RoleEnvironment.GetConfigurationSettingValue("AccountKey");
StorageCredentialsAccountAndKey credentials = new StorageCredentialsAccountAndKey(AccountName, AccountKey);
storageAccount = new Microsoft.WindowsAzure.Storage.CloudStorageAccount(credentials,
new StorageUri(),
new StorageUri("https://{0}.queue.core.windows.net"),
new StorageUri("https://{0}.table.core.windows.net"),
new StorageUri("https://{0}.table.core.windows.net"));
あなたはこれらのストレージURIパラメータを渡す理由はありますか?あなたの質問から、標準のストレージエンドポイントに接続しているようです。 –
yes「DefaultEndpointsProtocol = https」を渡しているときに、StorageCredentialsAccountAndKeyまたはStorageCredentialsからaccntntの名前とキーを渡しているので、必要なエンドポイントについては、storageuriパラメータを渡す方法を教えてください。 – stpdevi