你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
GenericResource.DefinitionStages.WithParentResource 接口
public static interface GenericResource.DefinitionStages.WithParentResource
允许指定父资源的泛型资源定义。
方法摘要
修饰符和类型 | 方法和描述 |
---|---|
abstract
With |
withParentResourceId(String parentResourceId)
指定父资源。 |
abstract
With |
withParentResourcePath(String parentResourcePath)
指定父资源相对路径。 |
方法详细信息
withParentResourceId
public abstract GenericResource.DefinitionStages.WithCreate withParentResourceId(String parentResourceId)
指定父资源。
Parameters:
parentResourceId
- 父资源 ID
Returns:
定义的下一阶段
withParentResourcePath
public abstract GenericResource.DefinitionStages.WithCreate withParentResourcePath(String parentResourcePath)
指定父资源相对路径。
Parameters:
parentResourcePath
- 父资源的相对路径
Returns:
定义的下一阶段