Edytuj

Udostępnij za pośrednictwem


WebReferenceOptions.Read Method

Definition

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

Overloads

Read(Stream, ValidationEventHandler)

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

Read(TextReader, ValidationEventHandler)

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

Read(XmlReader, ValidationEventHandler)

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

Read(Stream, ValidationEventHandler)

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

public:
 static System::Web::Services::Description::WebReferenceOptions ^ Read(System::IO::Stream ^ stream, System::Xml::Schema::ValidationEventHandler ^ validationEventHandler);
public static System.Web.Services.Description.WebReferenceOptions Read (System.IO.Stream stream, System.Xml.Schema.ValidationEventHandler validationEventHandler);
static member Read : System.IO.Stream * System.Xml.Schema.ValidationEventHandler -> System.Web.Services.Description.WebReferenceOptions
Public Shared Function Read (stream As Stream, validationEventHandler As ValidationEventHandler) As WebReferenceOptions

Parameters

stream
Stream

The Stream that contains the code generation options.

validationEventHandler
ValidationEventHandler

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

Returns

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

Applies to

Read(TextReader, ValidationEventHandler)

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

public:
 static System::Web::Services::Description::WebReferenceOptions ^ Read(System::IO::TextReader ^ reader, System::Xml::Schema::ValidationEventHandler ^ validationEventHandler);
public static System.Web.Services.Description.WebReferenceOptions Read (System.IO.TextReader reader, System.Xml.Schema.ValidationEventHandler validationEventHandler);
static member Read : System.IO.TextReader * System.Xml.Schema.ValidationEventHandler -> System.Web.Services.Description.WebReferenceOptions
Public Shared Function Read (reader As TextReader, validationEventHandler As ValidationEventHandler) As WebReferenceOptions

Parameters

reader
TextReader

The TextReader that contains the code generation options.

validationEventHandler
ValidationEventHandler

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

Returns

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

Applies to

Read(XmlReader, ValidationEventHandler)

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

public:
 static System::Web::Services::Description::WebReferenceOptions ^ Read(System::Xml::XmlReader ^ xmlReader, System::Xml::Schema::ValidationEventHandler ^ validationEventHandler);
public static System.Web.Services.Description.WebReferenceOptions Read (System.Xml.XmlReader xmlReader, System.Xml.Schema.ValidationEventHandler validationEventHandler);
static member Read : System.Xml.XmlReader * System.Xml.Schema.ValidationEventHandler -> System.Web.Services.Description.WebReferenceOptions
Public Shared Function Read (xmlReader As XmlReader, validationEventHandler As ValidationEventHandler) As WebReferenceOptions

Parameters

xmlReader
XmlReader

The XmlReader that contains the code generation options.

validationEventHandler
ValidationEventHandler

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

Returns

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

Applies to