SPField.AllowDeletion property
取得或設定 Boolean 值,以指定是否要刪除的欄位。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Property AllowDeletion As Nullable(Of Boolean)
Get
Set
'用途
Dim instance As SPField
Dim value As Nullable(Of Boolean)
value = instance.AllowDeletion
instance.AllowDeletion = value
public Nullable<bool> AllowDeletion { get; set; }
Property value
Type: System.Nullable<Boolean>
true可以刪除此欄位 ; 如果否則,請false或a null reference (Nothing in Visual Basic)。具有外部資料來源的欄位時,一定會傳回false 。
Exceptions
Exception | Condition |
---|---|
NotSupportedException | 如果具有外部資料來源的欄位,則無法設定本屬性。 |