Renci.SshNet.Common.PipeStream.SetLength C# (CSharp) Méthode

SetLength() public méthode

When overridden in a derived class, sets the length of the current stream.
The stream does not support both writing and seeking, such as if the stream is constructed from a pipe or console output.
public SetLength ( long value ) : void
value long The desired length of the current stream in bytes.
Résultat void
        public override void SetLength(long value)
        {
            throw new NotSupportedException();
        }

Usage Example

Exemple #1
0
 public void SetLengthTest()
 {
     PipeStream target = new PipeStream(); // TODO: Initialize to an appropriate value
     long value = 0; // TODO: Initialize to an appropriate value
     target.SetLength(value);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
All Usage Examples Of Renci.SshNet.Common.PipeStream::SetLength