MessageQueue.SynchronizingObject Propriété
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 ou définit l'objet utilisé pour marshaler l'appel du gestionnaire d'événements consécutif à un événement ReceiveCompleted ou PeekCompleted.
public:
property System::ComponentModel::ISynchronizeInvoke ^ SynchronizingObject { System::ComponentModel::ISynchronizeInvoke ^ get(); void set(System::ComponentModel::ISynchronizeInvoke ^ value); };
[System.ComponentModel.Browsable(false)]
[System.Messaging.MessagingDescription("MQ_SynchronizingObject")]
public System.ComponentModel.ISynchronizeInvoke SynchronizingObject { get; set; }
[<System.ComponentModel.Browsable(false)>]
[<System.Messaging.MessagingDescription("MQ_SynchronizingObject")>]
member this.SynchronizingObject : System.ComponentModel.ISynchronizeInvoke with get, set
Public Property SynchronizingObject As ISynchronizeInvoke
Valeur de propriété
ISynchronizeInvoke qui représente l'objet utilisé pour marshaler l'appel au gestionnaire d'événements consécutif à un événement ReceiveCompleted ou PeekCompleted. La valeur par défaut est null
.
- Attributs
Remarques
Un ReceiveCompleted événement ou PeekCompleted résulte respectivement d’une BeginReceive demande ou BeginPeek d’un thread spécifique. En règle générale, le SynchronizingObject est défini lorsque son composant associé est placé à l’intérieur d’un contrôle ou d’un formulaire, car ces composants sont liés à un thread spécifique.
En règle générale, l’objet de synchronisation marshale un appel de méthode dans un thread unique.
S’applique à
Voir aussi
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de l’année 2024, nous abandonnerons progressivement le mécanisme de retour d’information GitHub Issues pour le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultez :Soumettre et afficher des commentaires pour