다음을 통해 공유


SPUtility.GetSelectedDateFromSource Method

Retrieves the CalendarDate parameter value from the request context, optionally using the source page if necessary.

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

Syntax

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

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

Parameters

  • web
    Type: Microsoft.SharePoint.SPWeb

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

  • useSourceParameter
    Type: System.Boolean

    true to get the parameter from the source page if necessary.

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 the parameter is not in the query string, the method returns the CalendarDate from the source page.

See Also

Reference

SPUtility Class

SPUtility Members

Microsoft.SharePoint.Utilities Namespace