SPSite.LockIssue Property
Gets or sets the comment that is used in locking a site collection.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
The following code example uses the LockIssue property to explain why a specified site collection is being write-locked.
using (SPSite oSiteCollection = new SPSite("http://Site_Name")) { oSiteCollection.WriteLocked = true; oSiteCollection.ReadLocked = false; oSiteCollection.LockIssue = "Customer did not pay bill."; }
Note |
|---|
Certain objects implement the IDisposable interface, and you must avoid retaining these objects in memory after they are no longer needed. For information about good coding practices, see Disposing Objects. |
Note