你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SupportsGettingById<T> Interface

Type Parameters

T

the type of the resource collection

public interface SupportsGettingById

Provides access to getting a specific Azure resource based on its resource ID.

(Note this interface is not intended to be implemented by user code.)

Method Summary

Modifier and Type Method and Description
abstract T getById(String id)

Gets the information about a resource from Azure based on the resource id.

abstract Mono<T> getByIdAsync(String id)

Gets the information about a resource from Azure based on the resource id.

Method Details

getById

public abstract T getById(String id)

Gets the information about a resource from Azure based on the resource id.

Parameters:

id - the id of the resource.

Returns:

an immutable representation of the resource

getByIdAsync

public abstract Mono getByIdAsync(String id)

Gets the information about a resource from Azure based on the resource id.

Parameters:

id - the id of the resource.

Returns:

a Mono that emits the found resource asynchronously

Applies to