Serializer<T>.Deserialize 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Deserialize(ReadOnlySpan<Byte>, SerializerSession) |
從 |
Deserialize(Stream, SerializerSession) |
從 |
Deserialize(Byte[], SerializerSession) |
從 |
Deserialize(ReadOnlySequence<Byte>, SerializerSession) |
從 |
Deserialize(ArraySegment<Byte>, SerializerSession) |
從 |
Deserialize(PooledBuffer+BufferSlice, SerializerSession) |
從 |
Deserialize(ReadOnlyMemory<Byte>, SerializerSession) |
從 |
Deserialize(ReadOnlyMemory<Byte>) |
從 |
Deserialize(Stream) |
從 |
Deserialize(Byte[]) |
從 |
Deserialize(ReadOnlySequence<Byte>) |
從 |
Deserialize(ArraySegment<Byte>) |
從 |
Deserialize(PooledBuffer+BufferSlice) |
從 |
Deserialize(ReadOnlySpan<Byte>) |
從 |
Deserialize<TInput>(Reader<TInput>) |
從 |
Deserialize(ReadOnlySpan<Byte>, SerializerSession)
從source
還原串行化 類型的T
值。
public T Deserialize (ReadOnlySpan<byte> source, Orleans.Serialization.Session.SerializerSession session);
member this.Deserialize : ReadOnlySpan<byte> * Orleans.Serialization.Session.SerializerSession -> 'T
Public Function Deserialize (source As ReadOnlySpan(Of Byte), session As SerializerSession) As T
參數
- source
- ReadOnlySpan<Byte>
來源緩衝區。
- session
- SerializerSession
串行化程式會話。
傳回
已還原串行化的值。
適用於
Deserialize(Stream, SerializerSession)
從source
還原串行化 類型的T
值。
public T Deserialize (System.IO.Stream source, Orleans.Serialization.Session.SerializerSession session);
member this.Deserialize : System.IO.Stream * Orleans.Serialization.Session.SerializerSession -> 'T
Public Function Deserialize (source As Stream, session As SerializerSession) As T
參數
- source
- Stream
來源緩衝區。
- session
- SerializerSession
串行化程式會話。
傳回
已還原串行化的值。
適用於
Deserialize(Byte[], SerializerSession)
從source
還原串行化 類型的T
值。
public T Deserialize (byte[] source, Orleans.Serialization.Session.SerializerSession session);
member this.Deserialize : byte[] * Orleans.Serialization.Session.SerializerSession -> 'T
Public Function Deserialize (source As Byte(), session As SerializerSession) As T
參數
- source
- Byte[]
來源緩衝區。
- session
- SerializerSession
串行化程式會話。
傳回
已還原串行化的值。
適用於
Deserialize(ReadOnlySequence<Byte>, SerializerSession)
從source
還原串行化 類型的T
值。
public T Deserialize (System.Buffers.ReadOnlySequence<byte> source, Orleans.Serialization.Session.SerializerSession session);
member this.Deserialize : System.Buffers.ReadOnlySequence<byte> * Orleans.Serialization.Session.SerializerSession -> 'T
Public Function Deserialize (source As ReadOnlySequence(Of Byte), session As SerializerSession) As T
參數
- source
- ReadOnlySequence<Byte>
來源緩衝區。
- session
- SerializerSession
串行化程式會話。
傳回
已還原串行化的值。
適用於
Deserialize(ArraySegment<Byte>, SerializerSession)
從source
還原串行化 類型的T
值。
public T Deserialize (ArraySegment<byte> source, Orleans.Serialization.Session.SerializerSession session);
member this.Deserialize : ArraySegment<byte> * Orleans.Serialization.Session.SerializerSession -> 'T
Public Function Deserialize (source As ArraySegment(Of Byte), session As SerializerSession) As T
參數
- source
- ArraySegment<Byte>
來源緩衝區。
- session
- SerializerSession
串行化程式會話。
傳回
已還原串行化的值。
適用於
Deserialize(PooledBuffer+BufferSlice, SerializerSession)
從source
還原串行化 類型的T
值。
public T Deserialize (Orleans.Serialization.Buffers.PooledBuffer.BufferSlice source, Orleans.Serialization.Session.SerializerSession session);
member this.Deserialize : Orleans.Serialization.Buffers.PooledBuffer.BufferSlice * Orleans.Serialization.Session.SerializerSession -> 'T
Public Function Deserialize (source As PooledBuffer.BufferSlice, session As SerializerSession) As T
參數
- source
- PooledBuffer.BufferSlice
來源緩衝區。
- session
- SerializerSession
串行化程式會話。
傳回
已還原串行化的值。
適用於
Deserialize(ReadOnlyMemory<Byte>, SerializerSession)
從source
還原串行化 類型的T
值。
public T Deserialize (ReadOnlyMemory<byte> source, Orleans.Serialization.Session.SerializerSession session);
member this.Deserialize : ReadOnlyMemory<byte> * Orleans.Serialization.Session.SerializerSession -> 'T
Public Function Deserialize (source As ReadOnlyMemory(Of Byte), session As SerializerSession) As T
參數
- source
- ReadOnlyMemory<Byte>
來源緩衝區。
- session
- SerializerSession
串行化程式會話。
傳回
已還原串行化的值。
適用於
Deserialize(ReadOnlyMemory<Byte>)
從source
還原串行化 類型的T
值。
public T Deserialize (ReadOnlyMemory<byte> source);
member this.Deserialize : ReadOnlyMemory<byte> -> 'T
Public Function Deserialize (source As ReadOnlyMemory(Of Byte)) As T
參數
- source
- ReadOnlyMemory<Byte>
來源緩衝區。
傳回
已還原串行化的值。
適用於
Deserialize(Stream)
從source
還原串行化 類型的T
值。
public T Deserialize (System.IO.Stream source);
member this.Deserialize : System.IO.Stream -> 'T
Public Function Deserialize (source As Stream) As T
參數
- source
- Stream
來源緩衝區。
傳回
已還原串行化的值。
適用於
Deserialize(Byte[])
從source
還原串行化 類型的T
值。
public T Deserialize (byte[] source);
member this.Deserialize : byte[] -> 'T
Public Function Deserialize (source As Byte()) As T
參數
- source
- Byte[]
來源緩衝區。
傳回
已還原串行化的值。
適用於
Deserialize(ReadOnlySequence<Byte>)
從source
還原串行化 類型的T
值。
public T Deserialize (System.Buffers.ReadOnlySequence<byte> source);
member this.Deserialize : System.Buffers.ReadOnlySequence<byte> -> 'T
Public Function Deserialize (source As ReadOnlySequence(Of Byte)) As T
參數
- source
- ReadOnlySequence<Byte>
來源緩衝區。
傳回
已還原串行化的值。
適用於
Deserialize(ArraySegment<Byte>)
從source
還原串行化 類型的T
值。
public T Deserialize (ArraySegment<byte> source);
member this.Deserialize : ArraySegment<byte> -> 'T
Public Function Deserialize (source As ArraySegment(Of Byte)) As T
參數
- source
- ArraySegment<Byte>
來源緩衝區。
傳回
已還原串行化的值。
適用於
Deserialize(PooledBuffer+BufferSlice)
從source
還原串行化 類型的T
值。
public T Deserialize (Orleans.Serialization.Buffers.PooledBuffer.BufferSlice source);
member this.Deserialize : Orleans.Serialization.Buffers.PooledBuffer.BufferSlice -> 'T
Public Function Deserialize (source As PooledBuffer.BufferSlice) As T
參數
- source
- PooledBuffer.BufferSlice
來源緩衝區。
傳回
已還原串行化的值。
適用於
Deserialize(ReadOnlySpan<Byte>)
從source
還原串行化 類型的T
值。
public T Deserialize (ReadOnlySpan<byte> source);
member this.Deserialize : ReadOnlySpan<byte> -> 'T
Public Function Deserialize (source As ReadOnlySpan(Of Byte)) As T
參數
- source
- ReadOnlySpan<Byte>
來源緩衝區。
傳回
已還原串行化的值。
適用於
Deserialize<TInput>(Reader<TInput>)
從source
還原串行化 類型的T
值。
public T Deserialize<TInput> (ref Orleans.Serialization.Buffers.Reader<TInput> source);
member this.Deserialize : Reader -> 'T
Public Function Deserialize(Of TInput) (ByRef source As Reader(Of TInput)) As T
類型參數
- TInput
讀取器輸入類型。
參數
- source
- Reader<TInput>
來源緩衝區。
傳回
已還原串行化的值。