Contents Index Topic Contents | ||
Previous Topic: ProcessProtocolMessages Property Next Topic: ServerName Property |
PropertyAccessTimeOut Property
Reads or writes the time-out value when synchronously accessing a property.
Syntax
object.PropertyAccessTimeOut=value
Parameters
object Required. An object expression that evaluates to an MsChatPr control. value Required. A long integer value that contains the time-out expressed in milliseconds. This unique property is used for all the synchronous property accesses being performed in the control. Remarks
Access is read/write.
If a time-out condition occurs when trying to synchronously access a property, an error is returned. An OnChannelProperty, OnServerProperty, OnMemberProperty, or OnUserProperty event might be fired after a time-out error occurs. This event exposes the property that could not be accessed in time.
Example
Dim chatitemobj As ChatItems MsChatPr1.PropertyAccessTimeOut = 10000 '10 seconds Set chatitemobj = MsChatPr1.ChannelProperty("MaxMemberCount", "#MyRoom") '... use chatitemobj Set chatitemobj = MsChatPr1.Channels(2).MemberProperty("Identity", "Mila") '... use chatitemobj Set chatitemobj = NothingIn the following example, a time-out condition has caused an error. An OnChannelProperty event is fired, in which the ChannelItems parameter exposes the MaxMemberCount property and all other known properties.
Dim chatitemobj As ChatItems MsChatPr1.PropertyAccessTimeOut = 10 '10 milliseconds Set chatitemobj = MsChatPr1.ChannelProperty("MaxMemberCount", "#MyRoom")See Also
ChannelProperty, MemberProperty, OnChannelProperty, OnMemberProperty, OnUserProperty, OnServerProperty, ServerProperty
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.