你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Resource.GetAzureName(IConstruct, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Validate and sanitize the resource name.
protected virtual string GetAzureName (Azure.Provisioning.IConstruct scope, string resourceName);
abstract member GetAzureName : Azure.Provisioning.IConstruct * string -> string
override this.GetAzureName : Azure.Provisioning.IConstruct * string -> string
Protected Overridable Function GetAzureName (scope As IConstruct, resourceName As String) As String
Parameters
- scope
- IConstruct
The scope.
- resourceName
- String
The resource name.
Returns
Sanitized resource name.
Exceptions
If the resource name violates rules that cannot be sanitized.