ContributedFeature interface
可以啟用或停用的功能
屬性
| default |
如果為true,則會啟用此功能,除非在某些範圍內覆寫 |
| default |
如果未由任何設定/範圍指定,則設定預設值的規則。 依序評估,直到規則傳回「已啟用」或「已停用」狀態 (不是未定義) |
| description | 功能描述 |
| feature |
功能的額外屬性 |
| feature |
用於接聽功能值的 setter 呼叫的處理常式。 這些接聽器只會在成功集合發生之後呼叫 |
| id | 功能的完整貢獻標識碼 |
| include |
如果設定為 true,則此功能的識別碼會新增至要求的宣告清單。 |
| name | 功能的易記名稱 |
| order | 建議顯示特徵的順序。 |
| override |
覆寫特徵值的規則。 這些規則會在檢查明確的使用者/主機狀態值之前執行。 它們會依序評估,直到規則傳回「已啟用」或「已停用」狀態 (不是未定義) 為止 |
| scopes | 設定可以設定此功能啟用/停用狀態的範圍/層級 |
| service |
擁有此功能之服務的服務執行個體識別碼 |
| tags | 與功能相關聯的標籤。 |
屬性詳細資料
defaultState
如果為true,則會啟用此功能,除非在某些範圍內覆寫
defaultState: boolean
屬性值
boolean
defaultValueRules
如果未由任何設定/範圍指定,則設定預設值的規則。 依序評估,直到規則傳回「已啟用」或「已停用」狀態 (不是未定義)
defaultValueRules: ContributedFeatureValueRule[]
屬性值
description
功能描述
description: string
屬性值
string
featureProperties
功能的額外屬性
featureProperties: {[key: string]: any}
屬性值
{[key: string]: any}
featureStateChangedListeners
用於接聽功能值的 setter 呼叫的處理常式。 這些接聽器只會在成功集合發生之後呼叫
featureStateChangedListeners: ContributedFeatureListener[]
屬性值
id
功能的完整貢獻標識碼
id: string
屬性值
string
includeAsClaim
如果設定為 true,則此功能的識別碼會新增至要求的宣告清單。
includeAsClaim: boolean
屬性值
boolean
name
功能的易記名稱
name: string
屬性值
string
order
建議顯示特徵的順序。
order: number
屬性值
number
overrideRules
覆寫特徵值的規則。 這些規則會在檢查明確的使用者/主機狀態值之前執行。 它們會依序評估,直到規則傳回「已啟用」或「已停用」狀態 (不是未定義) 為止
overrideRules: ContributedFeatureValueRule[]
屬性值
scopes
設定可以設定此功能啟用/停用狀態的範圍/層級
scopes: ContributedFeatureSettingScope[]
屬性值
serviceInstanceType
擁有此功能之服務的服務執行個體識別碼
serviceInstanceType: string
屬性值
string
tags
與功能相關聯的標籤。
tags: string[]
屬性值
string[]