SetAsDefault Method

Sets the specified discussion server as the default server for the discussions user interface and for all subsequent calls to the global method OpenDiscussions.

expression.SetAsDefault

expression    An expression that returns a DiscussionServer object.

Remarks

The default discussion server is always the first DiscussionServer object in the DiscussionServers collection. Using the SetAsDefault method reorders the members of the DiscussionServers collection so that the default server is in the position referred to by Item(1). Therefore, after calling this method, you should discard any variables that have been set to old DiscussionServer objects.

Example

This example sets the third server in the DiscussionServers collection as the default discussion server.

dscServers(3).SetAsDefault