MimeFormatter.GetInitializer Método
Definição
Quando substituído em uma classe derivada, retorna um inicializador para o método especificado.When overridden in a derived class, returns an initializer for the specified method.
Sobrecargas
| GetInitializer(LogicalMethodInfo) |
Quando substituído em uma classe derivada, retorna um inicializador para o método especificado.When overridden in a derived class, returns an initializer for the specified method. |
| GetInitializer(Type, LogicalMethodInfo) |
Retorna um inicializador para o método especificado.Returns an initializer for the specified method. |
GetInitializer(LogicalMethodInfo)
Quando substituído em uma classe derivada, retorna um inicializador para o método especificado.When overridden in a derived class, returns an initializer for the specified method.
public:
abstract System::Object ^ GetInitializer(System::Web::Services::Protocols::LogicalMethodInfo ^ methodInfo);
public abstract object GetInitializer (System.Web.Services.Protocols.LogicalMethodInfo methodInfo);
abstract member GetInitializer : System.Web.Services.Protocols.LogicalMethodInfo -> obj
Public MustOverride Function GetInitializer (methodInfo As LogicalMethodInfo) As Object
Parâmetros
- methodInfo
- LogicalMethodInfo
Um LogicalMethodInfo que especifica o método Web para o qual o inicializador é obtido.A LogicalMethodInfo that specifies the Web method for which the initializer is obtained.
Retornos
Um Object que contém o inicializador para o método especificado.An Object that contains the initializer for the specified method.
Comentários
Um inicializador é um objeto passado como um parâmetro para o Initialize método.An initializer is an object passed as a parameter to the Initialize method.
A implementação de uma classe derivada do GetInitializer método de instância é invocada durante a inicialização do cliente ou do serviço.A derived class's implementation of the GetInitializer instance method is invoked during client or service initialization. Posteriormente, no momento em que uma solicitação ou resposta é processada, o objeto do inicializador é passado para o CreateInstance método estático, que cria uma instância de outro objeto da classe derivada e, em seguida, para o Initialize método para inicializá-lo.Later, at the time a request or response is processed, the initializer object is passed to the static CreateInstance method, which creates an instance of another object of the derived class, and then to the Initialize method to initialize it. O outro objeto executa a leitura ou gravação real.The other object performs the actual reading or writing.
Aplica-se a
GetInitializer(Type, LogicalMethodInfo)
Retorna um inicializador para o método especificado.Returns an initializer for the specified method.
public:
static System::Object ^ GetInitializer(Type ^ type, System::Web::Services::Protocols::LogicalMethodInfo ^ methodInfo);
public static object GetInitializer (Type type, System.Web.Services.Protocols.LogicalMethodInfo methodInfo);
static member GetInitializer : Type * System.Web.Services.Protocols.LogicalMethodInfo -> obj
Public Shared Function GetInitializer (type As Type, methodInfo As LogicalMethodInfo) As Object
Parâmetros
- type
- Type
O Tipo, derivado de MimeFormatter, para o qual inicializador é obtido.The Type, derived from MimeFormatter,- for which an initializer is obtained.
- methodInfo
- LogicalMethodInfo
Um LogicalMethodInfo que especifica o método Web para o qual o inicializador é obtido.A LogicalMethodInfo that specifies the Web method for which the initializer is obtained.
Retornos
Um objeto Object que contém o inicializador para o método especificado.A Object object that contains the initializer for the specified method.
Comentários
Um inicializador é um objeto passado como um parâmetro para o Initialize método.An initializer is an object passed as a parameter to the Initialize method.
O GetInitializer método estático invoca o método da classe derivada GetInitializer , criando implicitamente uma instância da classe derivada.The static GetInitializer method invokes the derived class's GetInitializer method, implicitly creating an instance of the derived class. No momento em que uma solicitação ou resposta é processada, o objeto do inicializador é passado para o Initialize método de outra instância da classe derivada.At the time a request or response is processed, the initializer object is passed to the Initialize method of another instance of the derived class. O último objeto executa a leitura ou gravação real.The latter object performs the actual reading or writing.