SPFormContext.FormMode property
取得或設定表單的控制項模式。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Property FormMode As SPControlMode
Get
Set
'用途
Dim instance As SPFormContext
Dim value As SPControlMode
value = instance.FormMode
instance.FormMode = value
public SPControlMode FormMode { get; set; }
Property value
Type: Microsoft.SharePoint.WebControls.SPControlMode
Microsoft.SharePoint.WebControls.SPControlMode 值,這個值指定控制項模式。可能值包括Display、 Edit、 Invalid和New。