共用方式為


SPUtility.GetSelectedDateFromSource method

從要求內容,選擇性地使用 [來源] 頁面上,必要時擷取CalendarDate參數值。

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

Syntax

'宣告
Public Shared Function GetSelectedDateFromSource ( _
    request As HttpRequest, _
    web As SPWeb, _
    useSourceParameter As Boolean _
) As String
'用途
Dim request As HttpRequest
Dim web As SPWeb
Dim useSourceParameter As Boolean
Dim returnValue As String

returnValue = SPUtility.GetSelectedDateFromSource(request, _
    web, useSourceParameter)
public static string GetSelectedDateFromSource(
    HttpRequest request,
    SPWeb web,
    bool useSourceParameter
)

參數

  • useSourceParameter
    Type: System.Boolean

    若要參數取得從 [來源] 頁面上,視true 。

傳回值

Type: System.String
要求時常CalendarDate參數值。

備註

傳回的值是表單 variables 集合中的CalendarDate參數。如果表單集合中沒有任何CalendarDate參數,方法會從查詢字串傳回CalendarDate參數。如果未查詢字串參數,則方法會傳回CalendarDate從 [來源] 頁面。

請參閱

參照

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace