Microsoft.SqlServer.TDS.Done.TDSDoneToken.Inflate C# (CSharp) Method

Inflate() public method

Inflate the token NOTE: This operation is not continuable and assumes that the entire token is available in the stream
public Inflate ( Stream source ) : bool
source System.IO.Stream Stream to inflate the token from
return bool
        public override bool Inflate(Stream source)
        {
            // Read status
            Status = (TDSDoneTokenStatusType)TDSUtilities.ReadUShort(source);

            // Read command
            Command = (TDSDoneTokenCommandType)TDSUtilities.ReadUShort(source);

            // Read row count
            RowCount = TDSUtilities.ReadULong(source);

            return true;
        }