Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SDK Documentation
SPSite Class
SPSite Properties
 LockIssue Property
Community Content
In this section
Statistics Annotations (0)
Collapse All/Expand All Collapse All
This page is specific to
The 2007 product release

Other versions are also available for the following:
SPSite.LockIssue Property (Microsoft.SharePoint)
Gets or sets the comment that is used in locking a site collection.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Visual Basic (Declaration)
Public Property LockIssue As String
Visual Basic (Usage)
Dim instance As SPSite
Dim value As String

value = instance.LockIssue

instance.LockIssue = value
C#
public string LockIssue { get; set; }

Property Value

A string that contains the comment.

The following code example uses the LockIssue property to explain why a specified site collection is being write-locked.

Visual Basic
Using oSiteCollection As New SPSite("http://Site_Name")
    oSiteCollection.WriteLocked = True
    oSiteCollection.ReadLocked = False
    oSiteCollection.LockIssue = "Customer did not pay bill."
End Using
C#
using (SPSite oSiteCollection = new SPSite("http://Site_Name"))
{
    oSiteCollection.WriteLocked = true;
    oSiteCollection.ReadLocked  = false;
    oSiteCollection.LockIssue   = "Customer did not pay bill.";
}
NoteNote:

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 Best Practices: Using Disposable Windows SharePoint Services Objects.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker