WebReferenceOptions.Read 方法
定义
返回基于指定输出中说明的代码生成选项的 WebReferenceOptions 的新实例。Returns a new instance of WebReferenceOptions based on the code generation options described in the specified input.
重载
| Read(Stream, ValidationEventHandler) |
返回基于指定流中说明的代码生成选项的 WebReferenceOptions 的新实例。Returns a new instance of WebReferenceOptions based on the code generation options described in the specified stream. |
| Read(TextReader, ValidationEventHandler) |
返回基于指定 WebReferenceOptions 中说明的代码生成选项的 TextReader 的新实例。Returns a new instance of WebReferenceOptions based on the code generation options described in the specified TextReader. |
| Read(XmlReader, ValidationEventHandler) |
返回基于指定 WebReferenceOptions 中说明的代码生成选项的 XmlReader 的新实例。Returns a new instance of WebReferenceOptions based on the code generation options described in the specified XmlReader. |
Read(Stream, ValidationEventHandler)
返回基于指定流中说明的代码生成选项的 WebReferenceOptions 的新实例。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
参数
- validationEventHandler
- ValidationEventHandler
将与 ValidationEventHandler 的新实例关联的 WebReferenceOptions。The ValidationEventHandler to be associated with the new instance of WebReferenceOptions.
返回
基于指定流中说明的代码生成选项的 WebReferenceOptions 的新实例。A new instance of WebReferenceOptions based on the code generation options described in the specified stream.
适用于
Read(TextReader, ValidationEventHandler)
返回基于指定 WebReferenceOptions 中说明的代码生成选项的 TextReader 的新实例。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
参数
- reader
- TextReader
包含代码生成选项的 TextReader。The TextReader that contains the code generation options.
- validationEventHandler
- ValidationEventHandler
将与 ValidationEventHandler 的新实例关联的 WebReferenceOptions。The ValidationEventHandler to be associated with the new instance of WebReferenceOptions.
返回
基于指定 WebReferenceOptions 中说明的代码生成选项的 TextReader 的新实例。A new instance of WebReferenceOptions based on the code generation options described in the specified TextReader.
适用于
Read(XmlReader, ValidationEventHandler)
返回基于指定 WebReferenceOptions 中说明的代码生成选项的 XmlReader 的新实例。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
参数
- validationEventHandler
- ValidationEventHandler
将与 ValidationEventHandler 的新实例关联的 WebReferenceOptions。The ValidationEventHandler to be associated with the new instance of WebReferenceOptions.
返回
基于指定 WebReferenceOptions 中说明的代码生成选项的 XmlReader 的新实例。A new instance of WebReferenceOptions based on the code generation options described in the specified XmlReader.