共用方式為


IHybridCacheSerializerFactory.TryCreateSerializer<T> 方法

定義

如果可能,請要求所提供類型的串行化程式。

public:
generic <typename T>
 bool TryCreateSerializer([Runtime::InteropServices::Out] Microsoft::Extensions::Caching::Hybrid::IHybridCacheSerializer<T> ^ % serializer);
public bool TryCreateSerializer<T> (out Microsoft.Extensions.Caching.Hybrid.IHybridCacheSerializer<T>? serializer);
abstract member TryCreateSerializer : IHybridCacheSerializer -> bool
Public Function TryCreateSerializer(Of T) (ByRef serializer As IHybridCacheSerializer(Of T)) As Boolean

類型參數

T

要串行化/還原串行化的型別。

參數

serializer
IHybridCacheSerializer<T>

串行化程式。

傳回

如果處理站支援此類型,true 否則為 false

適用於