XmlReturnReader.GetInitializers(LogicalMethodInfo[]) Método
Definição
Retorna uma matriz de objetos inicializadores correspondente à matriz de entrada das definições de método.Returns an array of initializer objects corresponding to an input array of method definitions.
public:
override cli::array <System::Object ^> ^ GetInitializers(cli::array <System::Web::Services::Protocols::LogicalMethodInfo ^> ^ methodInfos);
public override object[] GetInitializers (System.Web.Services.Protocols.LogicalMethodInfo[] methodInfos);
override this.GetInitializers : System.Web.Services.Protocols.LogicalMethodInfo[] -> obj[]
Public Overrides Function GetInitializers (methodInfos As LogicalMethodInfo()) As Object()
Parâmetros
- methodInfos
- LogicalMethodInfo[]
Uma matriz do tipo LogicalMethodInfo que especifica os métodos Web para os quais os inicializadores são obtidos.An array of type LogicalMethodInfo that specifies the Web methods for which the initializers are obtained.
Retornos
- Object[]
Uma matriz de objetos inicializadores correspondente à matriz de entrada das definições de método.An array of initializer objects corresponding to an input array of method definitions.
Comentários
Um inicializador é um objeto passado como um parâmetro para o método Initialize.An initializer is an object passed as a parameter to the Initialize method. Para a XmlReturnReader classe, o inicializador é um XmlSerializer objeto para o tipo de retorno do método da Web.For the XmlReturnReader class, the initializer is an XmlSerializer object for the return type of the Web method.
O GetInitializers método é invocado durante a inicialização do serviço.The GetInitializers method is invoked during service initialization. Posteriormente, no momento em que uma resposta é processada, o objeto de inicializador para cada método da Web é passado para o Initialize método de outra XmlReturnReader instância.Later, at the time a response is processed, the initializer object for each Web method is passed to the Initialize method of another XmlReturnReader instance. A outra instância executa a leitura real.The other instance performs the actual reading.