共用方式為


ScheduledItem.EndDate 屬性

取得或設定國際標準時間 (UTC) 此ScheduledItem課程結束,不再顯示已發佈的網站上。

命名空間:  Microsoft.SharePoint.Client.Publishing
組件:   Microsoft.SharePoint.Client.Publishing.Silverlight (在 Microsoft.SharePoint.Client.Publishing.Silverlight.dll 中);  Microsoft.SharePoint.Client.Publishing.Phone (在 Microsoft.SharePoint.Client.Publishing.Phone.dll 中)  Microsoft.SharePoint.Client.Publishing (在 Microsoft.SharePoint.Client.Publishing.dll 中)

語法

'宣告
Public Property EndDate As DateTime
    Get
    Set
'用途
Dim instance As ScheduledItem
Dim value As DateTime

value = instance.EndDate

instance.EndDate = value
public DateTime EndDate { get; set; }

屬性值

類型:System.DateTime
國際標準時間 (UTC) 此課程結束,不再顯示已發佈的網站上。

備註

2050 年 1 月 01,表示的ScheduledItem類別的執行個體不再顯示已發佈的網站上。如果此值設定結束日期,屬性會顯示使用中的相對應的使用者介面的 [永不的字串。

若要設定此屬性之後儲存變更,請連絡ScheduledItem.ListItem.Update方法。

日期及時間傳回此屬性的可以轉換 utc 為當地時間伺服器端程式碼中使用SPRegionalSettings.TimeZone.UTCToLocalTime(DateTime)方法。

若要將此值設PublishingPage上使用者必須編輯權限。使用者必須在一開始擷取它,並取得其屬性值的任何PublishingPage檢視權限。

請參閱

參照

ScheduledItem 類別

ScheduledItem 成員

Microsoft.SharePoint.Client.Publishing 命名空間