Guard.IsAtStartPosition(Stream, String) Method

Definition

Asserts that the input Stream instance must be at the starting position.

public static void IsAtStartPosition (System.IO.Stream stream, string name);
static member IsAtStartPosition : System.IO.Stream * string -> unit
Public Shared Sub IsAtStartPosition (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 is not at the starting position.

Applies to