Microsoft.SqlServer.TDS.SessionState.TDSSessionStateContextInfoOption.Inflate C# (CSharp) Method

Inflate() public method

Inflate from stream
public Inflate ( Stream source ) : bool
source Stream
return bool
        public override bool Inflate(Stream source)
        {
            // Reset inflation size
            InflationSize = 0;

            // NOTE: state ID is skipped because it is read by the construction factory

            // Read the value
            Value = InflateValue(source);

            // Inflation is complete
            return true;
        }
    }