IMemoryCache.TryGetValue(Object, Object) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the item associated with this key if present.
public:
bool TryGetValue(System::Object ^ key, [Runtime::InteropServices::Out] System::Object ^ % value);
C#
public bool TryGetValue(object key, out object? value);
abstract member TryGetValue : obj * obj -> bool
Public Function TryGetValue (key As Object, ByRef value As Object) As Boolean
- key
- Object
An object identifying the requested entry.
- value
- Object
The located value or null.
True if the key was found.
Producto | Versiones |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Standard | 2.0 (package-provided) |
Colaborar con nosotros en GitHub
El origen de este contenido se puede encontrar en GitHub, donde también puede crear y revisar problemas y solicitudes de incorporación de cambios. Para más información, consulte nuestra guía para colaboradores.
Comentarios de .NET
.NET es un proyecto de código abierto. Seleccione un vínculo para proporcionar comentarios: