SPList.DefaultDisplayFormUrl property
取得或設定顯示清單項目的預設表單的 URL。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Property DefaultDisplayFormUrl As String
Get
Set
'用途
Dim instance As SPList
Dim value As String
value = instance.DefaultDisplayFormUrl
instance.DefaultDisplayFormUrl = value
public string DefaultDisplayFormUrl { get; set; }
Property value
Type: System.String
當您設定屬性時,使用清單的Forms屬性所傳回集合中的SPForm物件ServerRelativeUrl屬性的值。當您取得的屬性時,傳回的字串是SPForm物件,這是伺服器相對 URL 的Url屬性的值。
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | 屬性中所設定的值是a null reference (Nothing in Visual Basic)。 |
SPException | 無法設定表單。新的表單不存在或清單不支援表單。 |