共用方式為


SPField.CanBeDeleted property

取得 Boolean 值,指出是否要刪除的欄位。

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

Syntax

'宣告
Public ReadOnly Property CanBeDeleted As Boolean
    Get
'用途
Dim instance As SPField
Dim value As Boolean

value = instance.CanBeDeleted
public bool CanBeDeleted { get; }

Property value

Type: System.Boolean
true可以刪除此欄位 ; 如果否則,請false。

備註

如果有一個值,此屬性會傳回AllowDeletion屬性的值。如果AllowDeletion沒有值,如果FromBaseType屬性,或是Sealed屬性會傳回trueCanBeDeleted會傳回false 。

請參閱

參照

SPField class

SPField members

Microsoft.SharePoint namespace