共用方式為


KeyedService<TKey,TService,TInstance> 類別

定義

表示索引鍵所識別的服務。

public class KeyedService<TKey,TService,TInstance> : Orleans.Runtime.KeyedService<TKey,TService> where TService : class where TInstance : TService
type KeyedService<'Key, 'Service, #'Service (requires 'Service : null)> = class
    inherit KeyedService<'Key, 'Service (requires 'Service : null)>
Public Class KeyedService(Of TKey, TService, TInstance)
Inherits KeyedService(Of TKey, TService)

類型參數

TKey

索引鍵的類型。

TService

服務的類型。

TInstance

實作實例的類型。

繼承
KeyedService<TKey,TService,TInstance>

建構函式

KeyedService<TKey,TService,TInstance>(TKey)

表示索引鍵所識別的服務。

KeyedService<TKey,TService,TInstance>(TKey, IServiceProvider)

表示索引鍵所識別的服務。

屬性

Key

取得服務金鑰。

(繼承來源 KeyedService<TKey,TService>)

方法

Equals(TKey)

表示索引鍵所識別的服務。

(繼承來源 KeyedService<TKey,TService>)
GetService(IServiceProvider)

從服務提供者取得服務。

(繼承來源 KeyedService<TKey,TService>)

適用於

另請參閱