ReliableStateManager.IReliableStateManager.TryAddStateSerializer<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a state serializer. Adds it for all reliable collection instances.
bool IReliableStateManager.TryAddStateSerializer<T>(Microsoft.ServiceFabric.Data.IStateSerializer<T> stateSerializer);
abstract member Microsoft.ServiceFabric.Data.IReliableStateManager.TryAddStateSerializer : Microsoft.ServiceFabric.Data.IStateSerializer<'T> -> bool
override this.Microsoft.ServiceFabric.Data.IReliableStateManager.TryAddStateSerializer : Microsoft.ServiceFabric.Data.IStateSerializer<'T> -> bool
Function TryAddStateSerializer(Of T) (stateSerializer As IStateSerializer(Of T)) As Boolean Implements IReliableStateManager.TryAddStateSerializer
Type Parameters
- T
Type that will be serialized and de-serialized.
Parameters
- stateSerializer
- IStateSerializer<T>
The state serializer to be added.
Returns
True if the serializer was added. False if a serailizer is already registered.
Implements
Remarks
This method can only be called in InitializeStateSerializers. Instance specific state serializers always take precedence.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for .NET