PublishedEvent.FieldList.TryGetValue(String, PublishedEventField) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient la valeur associée à la clé spécifiée.
public:
bool TryGetValue(System::String ^ fieldName, [Runtime::InteropServices::Out] Microsoft::SqlServer::XEvent::Linq::PublishedEventField ^ % value);
public bool TryGetValue (string fieldName, out Microsoft.SqlServer.XEvent.Linq.PublishedEventField value);
member this.TryGetValue : string * PublishedEventField -> bool
Public Function TryGetValue (fieldName As String, ByRef value As PublishedEventField) As Boolean
Paramètres
- fieldName
- String
Nom du champ à extraire.
- value
- PublishedEventField
Lorsque cette méthode retourne, elle contient le champ associé à la clé spécifiée, si la clé est trouvée. Sinon, la valeur par défaut pour le type du paramètre de valeur. Ce paramètre est passé sans être initialisé.
Retours
true
si l'événement contient un champ avec la colonne spécifiée ; sinon, false
.