ModelBinderDictionary.TryGetValue(Type, IModelBinder) Método
Definição
Obtém o valor associado à chave especificada.Gets the value that is associated with the specified key.
public:
virtual bool TryGetValue(Type ^ key, [Runtime::InteropServices::Out] System::Web::ModelBinding::IModelBinder ^ % value);
public bool TryGetValue (Type key, out System.Web.ModelBinding.IModelBinder value);
abstract member TryGetValue : Type * IModelBinder -> bool
override this.TryGetValue : Type * IModelBinder -> bool
Public Function TryGetValue (key As Type, ByRef value As IModelBinder) As Boolean
Parâmetros
- key
- Type
A chave do valor a ser obtido.The key of the value to get.
- value
- IModelBinder
Quando esse método for retornado, o valor associado à chave especificada se a chave for encontrada; caso contrário, o valor padrão para o tipo do parâmetro value.When this method returns, the value that is associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. Este parâmetro é passado não inicializado.This parameter is passed uninitialized.
Retornos
true se o dicionário contiver um elemento que tem a chave especificada; caso contrário, false.true if the dictionary contains an element that has the specified key; otherwise, false.