Guard.CanRead(Stream, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Asserts that the input Stream instance must support reading.
public static void CanRead (System.IO.Stream stream, string name);
static member CanRead : System.IO.Stream * string -> unit
Public Shared Sub CanRead (stream As Stream, name As String)
Parameters
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if stream
doesn't support reading.