共用方式為


SPSite.LockIssue property

取得或設定使用的註解中鎖定網站集合。

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

Syntax

'宣告
Public Property LockIssue As String
    Get
    Set
'用途
Dim instance As SPSite
Dim value As String

value = instance.LockIssue

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

Property value

Type: System.String
字串,包含註解。

Examples

下列程式碼範例會使用LockIssue屬性,來說明為什麼寫入鎖定所指定的站台集合。

Using oSiteCollection As New SPSite("http://Site_Name")
    oSiteCollection.WriteLocked = True
    oSiteCollection.ReadLocked = False
    oSiteCollection.LockIssue = "Customer did not pay bill."
End Using
using (SPSite oSiteCollection = new SPSite("http://Site_Name"))
{
    oSiteCollection.WriteLocked = true;
    oSiteCollection.ReadLocked  = false;
    oSiteCollection.LockIssue   = "Customer did not pay bill.";
}
注意事項注意事項

某些物件實作IDisposable介面,並且您必須避免之後不再需要保留這些物件在記憶體中。良好的程式碼撰寫方式的相關資訊,請參閱Disposing Objects

請參閱

參照

SPSite class

SPSite members

Microsoft.SharePoint namespace