SimpleValueProvider Classe

Definição

Representa um provedor de valor para pesquisas de chave/valor único.Represents a value provider for single key/value lookups.

public ref class SimpleValueProvider abstract : System::Web::ModelBinding::IValueProvider
public abstract class SimpleValueProvider : System.Web.ModelBinding.IValueProvider
type SimpleValueProvider = class
    interface IValueProvider
Public MustInherit Class SimpleValueProvider
Implements IValueProvider
Herança
SimpleValueProvider
Derivado
Implementações

Comentários

Esta classe não contém o mecanismo de pesquisa real; Ele delega isso a classes derivadas usando o FetchValue método.This class does not contain the actual look-up mechanism; it delegates that to derived classes using the FetchValue method. Exemplos de provedores de valor simples são a ViewStateValueProvider classe e a ControlValueProvider classe.Examples of simple value providers are the ViewStateValueProvider class and the ControlValueProvider class.

Construtores

SimpleValueProvider(ModelBindingExecutionContext)

Inicializa uma nova instância da classe SimpleValueProvider usando o contexto de execução especificado.Initializes a new instance of the SimpleValueProvider class by using the specified execution context.

SimpleValueProvider(ModelBindingExecutionContext, CultureInfo)

Inicializa uma nova instância da classe SimpleValueProvider usando o código de erro, o contexto de execução e as informações de cultura especificadas.Initializes a new instance of the SimpleValueProvider class by using the specified execution context and culture information.

Propriedades

ModelBindingExecutionContext

Obtém o contexto de execução.Gets the execution context.

Métodos

ContainsPrefix(String)

Obtém um valor que indica se o provedor de valor contém o prefixo especificado.Gets a value that indicates whether the value provider contains the specified prefix.

Equals(Object)

Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object.

(Herdado de Object)
FetchValue(String)

Quando implementada em uma classe derivada, retorna o valor para a chave especificada.When implemented in a derived class, returns the value for the specified key.

GetHashCode()

Serve como a função de hash padrão.Serves as the default hash function.

(Herdado de Object)
GetType()

Obtém o Type da instância atual.Gets the Type of the current instance.

(Herdado de Object)
GetValue(String)

Chama o método FetchValue(String) e, em seguida, usa o valor retornado para instanciar uma nova instância da classe ValueProviderResult.Calls the FetchValue(String) method and then uses the returned value to instantiate a new instance of the ValueProviderResult class.

MemberwiseClone()

Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object.

(Herdado de Object)
ToString()

Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object.

(Herdado de Object)

Aplica-se a