Azure Table GetSharedAccessSignature endPartitionKey 参数
Azure Table GetSharedAccessSignature endPartitionKey Parameter
在 Azure SDK for .NET 中有一个 GetSharedAccessSignature
returns table 的共享访问签名:
public string GetSharedAccessSignature(
Microsoft.WindowsAzure.Storage.Table.SharedAccessTablePolicy policy,
string accessPolicyIdentifier,
string startPartitionKey,
string startRowKey,
string endPartitionKey,
string endRowKey);
我很好奇endPartitionKey
参数是什么意思?我了解到,如果您不设置它,所有 后续 分区都会受到影响。但是这些后续分区是什么?
Im curious about what does the endPartitionKey parameter means?
参数 (startPartitionKey,startRowKey,endPartitionKey,endRowKey) 允许我们指定从 (start PK, start RK) 到 (end PK, end RK) 的行范围。
例如,我有一个包含 6 行的 table,如下所示。
如果我使用以下代码获取 SAS。我们可以使用此 SAS 来访问其 PartitionKey 值必须大于 P3 且小于 P4 的行。
string sas = table.GetSharedAccessSignature(policy, null, "P3", null, "P4", null);
I read about that if you not set it, all subsequent partitions are affected.
如果不设置end PartitionKey参数,那么return SAS可以访问所有PartitionKey值大于P3的行。
string sas = table.GetSharedAccessSignature(policy, null, "P3", null, null, null);
在 Azure SDK for .NET 中有一个 GetSharedAccessSignature
returns table 的共享访问签名:
public string GetSharedAccessSignature(
Microsoft.WindowsAzure.Storage.Table.SharedAccessTablePolicy policy,
string accessPolicyIdentifier,
string startPartitionKey,
string startRowKey,
string endPartitionKey,
string endRowKey);
我很好奇endPartitionKey
参数是什么意思?我了解到,如果您不设置它,所有 后续 分区都会受到影响。但是这些后续分区是什么?
Im curious about what does the endPartitionKey parameter means?
参数 (startPartitionKey,startRowKey,endPartitionKey,endRowKey) 允许我们指定从 (start PK, start RK) 到 (end PK, end RK) 的行范围。
例如,我有一个包含 6 行的 table,如下所示。
如果我使用以下代码获取 SAS。我们可以使用此 SAS 来访问其 PartitionKey 值必须大于 P3 且小于 P4 的行。
string sas = table.GetSharedAccessSignature(policy, null, "P3", null, "P4", null);
I read about that if you not set it, all subsequent partitions are affected.
如果不设置end PartitionKey参数,那么return SAS可以访问所有PartitionKey值大于P3的行。
string sas = table.GetSharedAccessSignature(policy, null, "P3", null, null, null);