你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AzureStorageBlobDataProtectionBuilderExtensions.PersistKeysToAzureBlobStorage 方法

定义

重载

PersistKeysToAzureBlobStorage(IDataProtectionBuilder, BlobClient)

配置数据保护系统,以将密钥保存到 Azure Blob 存储 中的指定路径。

PersistKeysToAzureBlobStorage(IDataProtectionBuilder, Func<IServiceProvider,BlobClient>)

配置数据保护系统,以将密钥保存到 Azure Blob 存储 中的指定路径。

PersistKeysToAzureBlobStorage(IDataProtectionBuilder, Uri)

配置数据保护系统,以将密钥保存到 Azure Blob 存储 中的指定路径。

PersistKeysToAzureBlobStorage(IDataProtectionBuilder, Uri, TokenCredential)

配置数据保护系统,以将密钥保存到 Azure Blob 存储 中的指定路径。

PersistKeysToAzureBlobStorage(IDataProtectionBuilder, Uri, StorageSharedKeyCredential)

配置数据保护系统,以将密钥保存到 Azure Blob 存储 中的指定路径。

PersistKeysToAzureBlobStorage(IDataProtectionBuilder, String, String, String)

配置数据保护系统,以将密钥保存到 Azure Blob 存储 中的指定路径。

PersistKeysToAzureBlobStorage(IDataProtectionBuilder, BlobClient)

Source:
AzureStorageBlobDataProtectionBuilderExtensions.cs

配置数据保护系统,以将密钥保存到 Azure Blob 存储 中的指定路径。

public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToAzureBlobStorage (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Azure.Storage.Blobs.BlobClient blobClient);
static member PersistKeysToAzureBlobStorage : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Azure.Storage.Blobs.BlobClient -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function PersistKeysToAzureBlobStorage (builder As IDataProtectionBuilder, blobClient As BlobClient) As IDataProtectionBuilder

参数

builder
IDataProtectionBuilder

要修改的生成器实例。

blobClient
BlobClient

BlobClient应存储密钥文件的 。

返回

builder

注解

引用的 blobClient Blob 必须已存在。

适用于

PersistKeysToAzureBlobStorage(IDataProtectionBuilder, Func<IServiceProvider,BlobClient>)

Source:
AzureStorageBlobDataProtectionBuilderExtensions.cs

配置数据保护系统,以将密钥保存到 Azure Blob 存储 中的指定路径。

public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToAzureBlobStorage (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Func<IServiceProvider,Azure.Storage.Blobs.BlobClient> blobClientFactory);
static member PersistKeysToAzureBlobStorage : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Func<IServiceProvider, Azure.Storage.Blobs.BlobClient> -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function PersistKeysToAzureBlobStorage (builder As IDataProtectionBuilder, blobClientFactory As Func(Of IServiceProvider, BlobClient)) As IDataProtectionBuilder

参数

builder
IDataProtectionBuilder

要修改的生成器实例。

blobClientFactory
Func<IServiceProvider,BlobClient>

工厂委托,用于创建 BlobClient 应在其中存储密钥文件的 。

返回

builder

注解

引用的 blobClient Blob 必须已存在。

适用于

PersistKeysToAzureBlobStorage(IDataProtectionBuilder, Uri)

Source:
AzureStorageBlobDataProtectionBuilderExtensions.cs

配置数据保护系统,以将密钥保存到 Azure Blob 存储 中的指定路径。

public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToAzureBlobStorage (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Uri blobSasUri);
static member PersistKeysToAzureBlobStorage : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Uri -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function PersistKeysToAzureBlobStorage (builder As IDataProtectionBuilder, blobSasUri As Uri) As IDataProtectionBuilder

参数

builder
IDataProtectionBuilder

要修改的生成器实例。

blobSasUri
Uri

返回

builder

注解

引用的 blobSasUri 容器必须已存在。

适用于

PersistKeysToAzureBlobStorage(IDataProtectionBuilder, Uri, TokenCredential)

Source:
AzureStorageBlobDataProtectionBuilderExtensions.cs

配置数据保护系统,以将密钥保存到 Azure Blob 存储 中的指定路径。

public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToAzureBlobStorage (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Uri blobUri, Azure.Core.TokenCredential tokenCredential);
static member PersistKeysToAzureBlobStorage : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Uri * Azure.Core.TokenCredential -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function PersistKeysToAzureBlobStorage (builder As IDataProtectionBuilder, blobUri As Uri, tokenCredential As TokenCredential) As IDataProtectionBuilder

参数

builder
IDataProtectionBuilder

要修改的生成器实例。

blobUri
Uri
tokenCredential
TokenCredential

用于连接到 Blob 的凭据。

返回

builder

注解

引用的 blobUri 容器必须已存在。

适用于

PersistKeysToAzureBlobStorage(IDataProtectionBuilder, Uri, StorageSharedKeyCredential)

Source:
AzureStorageBlobDataProtectionBuilderExtensions.cs

配置数据保护系统,以将密钥保存到 Azure Blob 存储 中的指定路径。

public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToAzureBlobStorage (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Uri blobUri, Azure.Storage.StorageSharedKeyCredential sharedKeyCredential);
static member PersistKeysToAzureBlobStorage : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Uri * Azure.Storage.StorageSharedKeyCredential -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function PersistKeysToAzureBlobStorage (builder As IDataProtectionBuilder, blobUri As Uri, sharedKeyCredential As StorageSharedKeyCredential) As IDataProtectionBuilder

参数

builder
IDataProtectionBuilder

要修改的生成器实例。

blobUri
Uri
sharedKeyCredential
StorageSharedKeyCredential

用于连接到 Blob 的凭据。

返回

builder

注解

引用的 blobUri 容器必须已存在。

适用于

PersistKeysToAzureBlobStorage(IDataProtectionBuilder, String, String, String)

Source:
AzureStorageBlobDataProtectionBuilderExtensions.cs

配置数据保护系统,以将密钥保存到 Azure Blob 存储 中的指定路径。

public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToAzureBlobStorage (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, string connectionString, string containerName, string blobName);
static member PersistKeysToAzureBlobStorage : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * string * string * string -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function PersistKeysToAzureBlobStorage (builder As IDataProtectionBuilder, connectionString As String, containerName As String, blobName As String) As IDataProtectionBuilder

参数

builder
IDataProtectionBuilder

要修改的生成器实例。

connectionString
String

连接字符串包含应用程序在运行时访问 Azure 存储帐户中数据所需的身份验证信息。

containerName
String

要使用的容器名称。

blobName
String

要使用的 Blob 名称。

返回

builder

注解

引用的 containerName 容器必须已存在。

适用于