Pou*_*sen 7 azure azure-storage
如何根据规则以编程方式确定容器名称是否无效?
Azure Blob存储中Container的有效命名.
Pou*_*sen 13
Azure Blob存储中Container的有效命名.
在我的WebAPI中,我使用了以下内容:
if (container.Length < 3 ||
container.Length > 63 ||
!Regex.IsMatch(container, @"^[a-z0-9]+(-[a-z0-9]+)*$"))
throw new HttpResponseException(Request.CreateResponse(
HttpStatusCode.BadRequest, "Invalid Request!"));
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
3953 次 |
最近记录: |