Notification.GetInfo
- 已更新2025-07-21
- 閱讀時間為 2 分鐘
Notification.GetInfo
Syntax
Notification.GetInfo( sequenceContextObj, destinationPropObj, numThreadsWaiting, isSet, isAutoClear)
Purpose
Obtains information about the notification.
Parameters
sequenceContextObj As Object
[In] Specifies a sequence context . You can pass NULL for this parameter, but when you want to use the destinationPropObj parameter to retrieve data from a notification a different process put there, you must pass a valid sequence context.
destinationPropObj As Object
[In] Specifies the PropertyObject in which to store the notification data. You can pass a NULL reference when you do not want to store the data. The type of the destination PropertyObject must be compatible with the data the notification sends. The Wait Behaviors for Data Set or Pulsed by Value and Wait Behaviors for Data Set or Pulsed by Reference tables illustrate the wait outcome depending on the type of the data and the data type of the storage location. In these tables, Simple Type refers to a number, string, Boolean, or array of any type, and Structured Type refers to an instance of a user-defined type where the root property is a container.
numThreadsWaiting As Long
[Out] Returns the number of threads waiting on the notification. You can pass NULL for this parameter.
isSet As Boolean
[Out] Returns True when the notification is in a set state. You can pass NULL for this parameter.
isAutoClear As Boolean
[Out] Returns True when the notification is configured to automatically clear itself after one thread waits on the notification. You can pass NULL for this parameter.