SPUtility.GetSelectedDate method
從要求內容擷取CalendarDate參數值。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function GetSelectedDate ( _
request As HttpRequest, _
web As SPWeb _
) As String
'用途
Dim request As HttpRequest
Dim web As SPWeb
Dim returnValue As String
returnValue = SPUtility.GetSelectedDate(request, _
web)
public static string GetSelectedDate(
HttpRequest request,
SPWeb web
)
參數
request
Type: System.Web.HttpRequest代表要求內容物件。
web
Type: Microsoft.SharePoint.SPWeb表示SharePoint Foundation網站與要求內容相關聯的物件。
傳回值
Type: System.String
要求時常CalendarDate參數值。
備註
傳回的值是表單 variables 集合中的CalendarDate參數。如果表單集合中沒有任何CalendarDate參數,方法會從查詢字串傳回CalendarDate參數。如果這些值都存在時,此方法會傳回a null reference (Nothing in Visual Basic)。