다음을 통해 공유


SPUtility.GetSelectedDate Method

Retrieves the CalendarDate parameter value from the request context.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedExternalType)> _
Public Shared Function GetSelectedDate ( _
    request As HttpRequest, _
    web As SPWeb _
) As String
'Usage
Dim request As HttpRequest
Dim web As SPWeb
Dim returnValue As String

returnValue = SPUtility.GetSelectedDate(request, _
    web)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedExternalType)]
public static string GetSelectedDate(
    HttpRequest request,
    SPWeb web
)

Parameters

  • web
    Type: Microsoft.SharePoint.SPWeb

    An object that represents the SharePoint Foundation Web site with which the request context is associated.

Return Value

Type: System.String
The CalendarDate parameter value from the request context.

Remarks

The value returned is the CalendarDate parameter from the collection of form variables. If there is no CalendarDate parameter in the form collection, the method returns the CalendarDate parameter from the query string.If neither of these values exists, the method returns a null reference (Nothing in Visual Basic).

See Also

Reference

SPUtility Class

SPUtility Members

Microsoft.SharePoint.Utilities Namespace