你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
BlobsModelFactory.UserDelegationKey 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
UserDelegationKey(String, String, DateTimeOffset, DateTimeOffset, String, String, String) |
初始化 UserDelegationKey 的新实例。 |
UserDelegationKey(String, String, String, String, String, DateTimeOffset, DateTimeOffset) |
创建新的 UserDelegationKey 实例进行模拟。 |
UserDelegationKey(String, String, DateTimeOffset, DateTimeOffset, String, String, String)
初始化 UserDelegationKey 的新实例。
public static Azure.Storage.Blobs.Models.UserDelegationKey UserDelegationKey (string signedObjectId = default, string signedTenantId = default, DateTimeOffset signedStartsOn = default, DateTimeOffset signedExpiresOn = default, string signedService = default, string signedVersion = default, string value = default);
static member UserDelegationKey : string * string * DateTimeOffset * DateTimeOffset * string * string * string -> Azure.Storage.Blobs.Models.UserDelegationKey
Public Shared Function UserDelegationKey (Optional signedObjectId As String = Nothing, Optional signedTenantId As String = Nothing, Optional signedStartsOn As DateTimeOffset = Nothing, Optional signedExpiresOn As DateTimeOffset = Nothing, Optional signedService As String = Nothing, Optional signedVersion As String = Nothing, Optional value As String = Nothing) As UserDelegationKey
参数
- signedObjectId
- String
GUID 格式的 Azure Active Directory 对象 ID。
- signedTenantId
- String
GUID 格式的 Azure Active Directory 租户 ID。
- signedStartsOn
- DateTimeOffset
密钥处于活动状态的日期时间。
- signedExpiresOn
- DateTimeOffset
密钥过期的日期时间。
- signedService
- String
接受密钥的 Azure 存储服务的缩写。
- signedVersion
- String
创建密钥的服务版本。
- value
- String
作为 base64 字符串的键。
返回
用于模拟的新 UserDelegationKey 实例。
例外
signedObjectId
、signedTenantId
、 signedService
signedVersion
或 value
为 null。
适用于
UserDelegationKey(String, String, String, String, String, DateTimeOffset, DateTimeOffset)
创建新的 UserDelegationKey 实例进行模拟。
public static Azure.Storage.Blobs.Models.UserDelegationKey UserDelegationKey (string signedObjectId, string signedTenantId, string signedService, string signedVersion, string value, DateTimeOffset signedExpiresOn, DateTimeOffset signedStartsOn);
static member UserDelegationKey : string * string * string * string * string * DateTimeOffset * DateTimeOffset -> Azure.Storage.Blobs.Models.UserDelegationKey
Public Shared Function UserDelegationKey (signedObjectId As String, signedTenantId As String, signedService As String, signedVersion As String, value As String, signedExpiresOn As DateTimeOffset, signedStartsOn As DateTimeOffset) As UserDelegationKey
参数
- signedObjectId
- String
- signedTenantId
- String
- signedService
- String
- signedVersion
- String
- value
- String
- signedExpiresOn
- DateTimeOffset
- signedStartsOn
- DateTimeOffset