WebReferenceOptions.Read Method (TextReader, ValidationEventHandler)

 

Returns a new instance of WebReferenceOptions based on the code generation options described in the specified TextReader.

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

Public Shared Function Read (
	reader As TextReader,
	validationEventHandler As ValidationEventHandler
) As WebReferenceOptions

Parameters

reader
Type: System.IO.TextReader

The TextReader that contains the code generation options.

validationEventHandler
Type: System.Xml.Schema.ValidationEventHandler

The ValidationEventHandler to be associated with the new instance of WebReferenceOptions.

Return Value

Type: System.Web.Services.Description.WebReferenceOptions

A new instance of WebReferenceOptions based on the code generation options described in the specified TextReader.

.NET Framework
Available since 2.0
Return to top
Show: