Microsoft.SqlServer.TDS.SessionState.TDSSessionStateTextSizeOption.Deflate C# (CSharp) Method

Deflate() public method

Deflate state into the stream
public Deflate ( Stream destination ) : void
destination Stream
return void
        public override void Deflate(Stream destination)
        {
            // Write state ID
            destination.WriteByte(StateID);

            // Store the value
            DeflateValue(destination, BitConverter.GetBytes(Value));
        }