Export (0) Print
Expand All

ServiceDescription.Read Method (Stream, Boolean)

Initializes an instance of the ServiceDescription class by directly loading the XML from a Stream instance.

Namespace:  System.Web.Services.Description
Assembly:  System.Web.Services (in System.Web.Services.dll)

public static ServiceDescription Read(
	Stream stream,
	bool validate


Type: System.IO.Stream

A Stream, passed by reference, which contains the bytes to be read.

Type: System.Boolean

A Boolean that indicates whether the XML should be validated against the schema specified by Schema.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft