SetAsDefault Method

Microsoft Office Web Discussions Client Language

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   An expression that returns a DiscussionServer object.


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.


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