ServerProperty PropertyServerProperty Property*
*Contents  *Index  *Topic Contents
*Previous Topic: ServerName Property
*Next Topic: UserProperty Property

ServerProperty Property

Synchronously accesses a server property.

Syntax

value.object.ServerProperty(ServerPropertyName)

Parameters

valueRequired. An object expression that evaluates to a ChatItems object.
objectRequired. An object expression that evaluates to an MsChatPr control.
ServerPropertyNameRequired. A string that contains one of these valid server property name values:
AnonymousAllowed
ChannelCount
IgnoredUsers
Info
MaxMessageLength
Name
NetInvisibleCount
NetServerCount
NetUserCount
NodeServerCount
NodeUserCount
SecurityPackages
SysopCount
UnknownConnectionCount

Remarks

Access is read-only.

If the property could not be retrieved within the number of milliseconds specified by the PropertyAccessTimeOut property, a time-out error is thrown and an OnServerProperty event might be fired later with the requested property.

The connection state must be at least csConnected to access the following properties:
AnonymousAllowed
IgnoredUsers
MaxMessageLength
Name

The state must be at least csLogged to access all other server properties.

Example

Dim chatitemobj As ChatItems
Set chatitemobj = MsChatPr1.ServerProperty("AnonymousAllowed")
'...use chatitemobj 
Set chatitemobj = MsChatPr1.ServerProperty("NodeUserCount")
'...use chatitemobj 
Set chatitemobj = Nothing

See Also

PropertyAccessTimeOut


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.