IVersionManager.SetCompatibilityStrategy 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
SetCompatibilityStrategy(CompatibilityStrategy)
設定相容性策略。
public System.Threading.Tasks.Task SetCompatibilityStrategy (Orleans.Versions.Compatibility.CompatibilityStrategy strategy);
abstract member SetCompatibilityStrategy : Orleans.Versions.Compatibility.CompatibilityStrategy -> System.Threading.Tasks.Task
Public Function SetCompatibilityStrategy (strategy As CompatibilityStrategy) As Task
參數
- strategy
- CompatibilityStrategy
要設定的策略。 設定為 , null
以還原為組態中提供的預設策略。
傳回
, Task 表示作業。
適用於
SetCompatibilityStrategy(GrainInterfaceType, CompatibilityStrategy)
設定特定介面的相容性策略。
public System.Threading.Tasks.Task SetCompatibilityStrategy (Orleans.Runtime.GrainInterfaceType interfaceType, Orleans.Versions.Compatibility.CompatibilityStrategy strategy);
abstract member SetCompatibilityStrategy : Orleans.Runtime.GrainInterfaceType * Orleans.Versions.Compatibility.CompatibilityStrategy -> System.Threading.Tasks.Task
Public Function SetCompatibilityStrategy (interfaceType As GrainInterfaceType, strategy As CompatibilityStrategy) As Task
參數
- interfaceType
- GrainInterfaceType
介面的型別。
- strategy
- CompatibilityStrategy
要設定的策略。 設定為 , null
以還原為組態中提供的預設策略。
傳回
, Task 表示作業。
適用於
SetCompatibilityStrategy(Int32, CompatibilityStrategy)
設定特定介面的相容性策略
public System.Threading.Tasks.Task SetCompatibilityStrategy (int interfaceId, Orleans.Versions.Compatibility.CompatibilityStrategy strategy);
abstract member SetCompatibilityStrategy : int * Orleans.Versions.Compatibility.CompatibilityStrategy -> System.Threading.Tasks.Task
Public Function SetCompatibilityStrategy (interfaceId As Integer, strategy As CompatibilityStrategy) As Task
參數
- interfaceId
- Int32
介面的識別碼
- strategy
- CompatibilityStrategy
要設定的策略。 設定為 null 以還原為組態中提供的預設策略