Share via


XmlBinaryReaderSession.TryLookup Méthode

Définition

Vérifie si la collection interne contient une entrée.

Surcharges

TryLookup(Int32, XmlDictionaryString)

Vérifie si la collection interne contient une entrée correspondant à une clé.

TryLookup(String, XmlDictionaryString)

Vérifie si la collection interne contient une entrée correspondant à une valeur.

TryLookup(XmlDictionaryString, XmlDictionaryString)

Vérifie si la collection interne contient une entrée correspondant à une valeur.

TryLookup(Int32, XmlDictionaryString)

Source:
XmlBinaryReaderSession.cs
Source:
XmlBinaryReaderSession.cs
Source:
XmlBinaryReaderSession.cs

Vérifie si la collection interne contient une entrée correspondant à une clé.

public:
 virtual bool TryLookup(int key, [Runtime::InteropServices::Out] System::Xml::XmlDictionaryString ^ % result);
public bool TryLookup (int key, out System.Xml.XmlDictionaryString result);
public bool TryLookup (int key, out System.Xml.XmlDictionaryString? result);
abstract member TryLookup : int * XmlDictionaryString -> bool
override this.TryLookup : int * XmlDictionaryString -> bool
Public Function TryLookup (key As Integer, ByRef result As XmlDictionaryString) As Boolean

Paramètres

key
Int32

Clé à rechercher.

result
XmlDictionaryString

Lorsque cette méthode est retournée, contient une chaîne si une entrée est trouvée ; sinon, null. Ce paramètre est passé sans être initialisé.

Retours

true si une entrée correspondant à key a été trouvée ; sinon false.

Implémente

Exceptions

key a la valeur null.

S’applique à

TryLookup(String, XmlDictionaryString)

Source:
XmlBinaryReaderSession.cs
Source:
XmlBinaryReaderSession.cs
Source:
XmlBinaryReaderSession.cs

Vérifie si la collection interne contient une entrée correspondant à une valeur.

public:
 virtual bool TryLookup(System::String ^ value, [Runtime::InteropServices::Out] System::Xml::XmlDictionaryString ^ % result);
public bool TryLookup (string value, out System.Xml.XmlDictionaryString result);
public bool TryLookup (string value, out System.Xml.XmlDictionaryString? result);
abstract member TryLookup : string * XmlDictionaryString -> bool
override this.TryLookup : string * XmlDictionaryString -> bool
Public Function TryLookup (value As String, ByRef result As XmlDictionaryString) As Boolean

Paramètres

value
String

La valeur à rechercher.

result
XmlDictionaryString

Lorsque cette méthode est retournée, contient une chaîne si une entrée est trouvée ; sinon, null. Ce paramètre est passé sans être initialisé.

Retours

true si une entrée correspondant à value a été trouvée ; sinon false.

Implémente

Exceptions

value a la valeur null.

S’applique à

TryLookup(XmlDictionaryString, XmlDictionaryString)

Source:
XmlBinaryReaderSession.cs
Source:
XmlBinaryReaderSession.cs
Source:
XmlBinaryReaderSession.cs

Vérifie si la collection interne contient une entrée correspondant à une valeur.

public:
 virtual bool TryLookup(System::Xml::XmlDictionaryString ^ value, [Runtime::InteropServices::Out] System::Xml::XmlDictionaryString ^ % result);
public bool TryLookup (System.Xml.XmlDictionaryString value, out System.Xml.XmlDictionaryString result);
public bool TryLookup (System.Xml.XmlDictionaryString value, out System.Xml.XmlDictionaryString? result);
abstract member TryLookup : System.Xml.XmlDictionaryString * XmlDictionaryString -> bool
override this.TryLookup : System.Xml.XmlDictionaryString * XmlDictionaryString -> bool
Public Function TryLookup (value As XmlDictionaryString, ByRef result As XmlDictionaryString) As Boolean

Paramètres

value
XmlDictionaryString

La valeur à rechercher.

result
XmlDictionaryString

Lorsque cette méthode est retournée, contient une chaîne si une entrée est trouvée ; sinon, null. Ce paramètre est passé sans être initialisé.

Retours

true si une entrée correspondant à value a été trouvée ; sinon false.

Implémente

Exceptions

value a la valeur null.

S’applique à