Share via


StorageProviderAttribute 類別

定義

[China.Providers.StorageProvider] 屬性是用來定義要用於保留粒紋狀態的儲存提供者。

針對擴充 Grain < T > 的所有細微性,建議指定 [一般提供者.StorageProvider] 屬性。 如果未指定 [Foundation.Providers.StorageProvider] 屬性,則會使用 「Default」 儲存提供者。 如果無法找到適合此粒紋的儲存提供者,則粒紋將無法載入到接收器。

[System.AttributeUsage(System.AttributeTargets.Class)]
public sealed class StorageProviderAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
type StorageProviderAttribute = class
    inherit Attribute
Public NotInheritable Class StorageProviderAttribute
Inherits Attribute
繼承
StorageProviderAttribute
屬性

建構函式

StorageProviderAttribute()

初始化 StorageProviderAttribute 類別的新執行個體。

屬性

ProviderName

取得或設定要用於保存粒紋狀態的提供者名稱。

適用於