共用方式為


Features interface

表示功能的介面。

方法

get(string, string, FeaturesGetOptionalParams)

取得具有指定名稱的預覽功能。

list(string, FeaturesListOptionalParams)

取得提供者命名空間中的所有預覽功能,這些功能可透過訂用帳戶的 AFEC 取得。

listAll(FeaturesListAllOptionalParams)

取得可透過訂閱 AFEC 取得的所有預覽功能。

register(string, string, FeaturesRegisterOptionalParams)

註冊訂閱的預覽功能。

unregister(string, string, FeaturesUnregisterOptionalParams)

取消註冊訂閱的預覽功能。

方法詳細資料

get(string, string, FeaturesGetOptionalParams)

取得具有指定名稱的預覽功能。

function get(resourceProviderNamespace: string, featureName: string, options?: FeaturesGetOptionalParams): Promise<FeatureResult>

參數

resourceProviderNamespace

string

功能的資源提供者命名空間。

featureName

string

要取得的功能名稱。

options
FeaturesGetOptionalParams

選項參數。

傳回

Promise<FeatureResult>

list(string, FeaturesListOptionalParams)

取得提供者命名空間中的所有預覽功能,這些功能可透過訂用帳戶的 AFEC 取得。

function list(resourceProviderNamespace: string, options?: FeaturesListOptionalParams): PagedAsyncIterableIterator<FeatureResult, FeatureResult[], PageSettings>

參數

resourceProviderNamespace

string

用於取得功能之資源提供者的命名空間。

options
FeaturesListOptionalParams

選項參數。

傳回

listAll(FeaturesListAllOptionalParams)

取得可透過訂閱 AFEC 取得的所有預覽功能。

function listAll(options?: FeaturesListAllOptionalParams): PagedAsyncIterableIterator<FeatureResult, FeatureResult[], PageSettings>

參數

options
FeaturesListAllOptionalParams

選項參數。

傳回

register(string, string, FeaturesRegisterOptionalParams)

註冊訂閱的預覽功能。

function register(resourceProviderNamespace: string, featureName: string, options?: FeaturesRegisterOptionalParams): Promise<FeatureResult>

參數

resourceProviderNamespace

string

資源提供者的命名空間。

featureName

string

要註冊的功能名稱。

options
FeaturesRegisterOptionalParams

選項參數。

傳回

Promise<FeatureResult>

unregister(string, string, FeaturesUnregisterOptionalParams)

取消註冊訂閱的預覽功能。

function unregister(resourceProviderNamespace: string, featureName: string, options?: FeaturesUnregisterOptionalParams): Promise<FeatureResult>

參數

resourceProviderNamespace

string

資源提供者的命名空間。

featureName

string

要取消註冊的功能名稱。

options
FeaturesUnregisterOptionalParams

選項參數。

傳回

Promise<FeatureResult>