System.Data.SqlTypes.SqlXmlStreamWrapper.SetLength C# (CSharp) Method

SetLength() public method

public SetLength ( long value ) : void
value long
return void
        public override void SetLength(long value)
        {
            ThrowIfStreamClosed(nameof(SetLength));
            ThrowIfStreamCannotSeek(nameof(SetLength));

            _stream.SetLength(value);
            if (_lPosition > value)
                _lPosition = value;
        }