Guard.CanSeek(Stream, String) Method

Definition

Asserts that the input Stream instance must support seeking.

public static void CanSeek (System.IO.Stream stream, string name);
static member CanSeek : System.IO.Stream * string -> unit
Public Shared Sub CanSeek (stream As Stream, name As String)

Parameters

stream
Stream

The input Stream instance to test.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if stream doesn't support seeking.

Applies to