Share via


TopologyLock Class

The TopologyLock class provides a set of properties for managing temporary locks for exclusive processes in the topology of a server farm.

System.Object

    Microsoft.SharePoint.Portal.Topology.TopologyLock

Public Methods

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

Name Description
Acquire Acquires a lock.
Acquire(Boolean) Acquires a lock.
Release Releases a lock.
Release(Boolean) Releases a lock.

Public Properties

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

Name Data type Description
Client String Gets the name of the computer that acquired the lock.
DateTime System.DateTime Gets the date and time when the lock was acquired.
IsHeld Boolean Gets a value that specifies whether the lock is owned by the TopologyLock object.
Owner String Gets the account name of the user who requested the lock.

Thread Safety

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

Remarks

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