Globals Class

The Globals class provides a set of properties specific to Microsoft Windows SharePoint Services that apply across a server or server farm.

System.Object

   Microsoft.SharePoint.Portal.Topology.TopologyObjectBase

       Microsoft.SharePoint.Portal.Topology.Globals

Public Methods

The following table shows the public methods of the Globals class and a brief description of each.

Name Description
Commit(Boolean) Persists changes made to the properties that apply across a server or a server farm.

Public Properties

The following table shows the properties of the Globals class, the data type of each property, and a brief description of each.

Name Data Type Description
DefaultFromAddress String Gets or sets the default From address to use for e-mail notifications.
DefaultMailEncoding System.Text.Encoding Gets or sets the default encoding method for e-mail notifications such as Unicode (UTF-8).
DefaultReplyToAddress String Gets or sets the default Reply To address for e-mail notifications.
DefaultSmtpService Microsoft.SharePoint.Portal.Topology.SmtpService Gets or sets the default e-mail service.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Remarks

Use the Globals class to manage global settings that are specific to Microsoft Windows SharePoint Services in a Microsoft Office SharePoint Portal Server 2003 topology. Use the GlobalProperties class to manage SharePoint Portal Server settings.

In a SharePoint Portal Server topology, the Globals class contains properties specific to Windows SharePoint Services, and the GlobalProperties class contains properties specific to SharePoint Portal Server. Properties of the Globals class are stored in the Globals table of the configuration database; properties of the GlobalProperties class are stored in the PortalGlobals table.

To use the properties and methods of the objects in the Topology namespace you must be a member of the local STS_WPG and SPS_WPG security groups, and a member of the db_owner database role for the configuration database.

In addition, for certain methods, such as those that create a portal site, you must be a member of the local Administrators group, and have membership in the Database Creators and Security Administrators server roles in the SQL Server instance that hosts the configuration database.

Requirements

Namespace: Microsoft.SharePoint.Portal.Topology

Platforms: Microsoft Windows Server 2003

Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Security: Code Access Security