次の方法で共有


SPUtility.DetermineRedirectUrl method

Helper function that determines a redirection URL, typically for server-side redirects. For example, a redirection that uses SPUtility.Redirect.

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

Syntax

'Declaration
Public Shared Function DetermineRedirectUrl ( _
    urlProposed As String, _
    flags As SPRedirectFlags, _
    context As HttpContext, _
    queryString As String, _
    <OutAttribute> ByRef urlRedirect As String _
) As Boolean
'Usage
Dim urlProposed As String
Dim flags As SPRedirectFlags
Dim context As HttpContext
Dim queryString As String
Dim urlRedirect As String
Dim returnValue As Boolean

returnValue = SPUtility.DetermineRedirectUrl(urlProposed, _
    flags, context, queryString, urlRedirect)
public static bool DetermineRedirectUrl(
    string urlProposed,
    SPRedirectFlags flags,
    HttpContext context,
    string queryString,
    out string urlRedirect
)

Parameters

  • queryString
    Type: System.String

    Additional query string to use for the redirection URL. This is appended to the returned URL urlRedirect.

  • urlRedirect
    Type: System.String

    When this method returns, contains a String that contains the redirection URL. This parameter is passed uninitialized.

Return value

Type: System.Boolean
A redirection URL.

See also

Reference

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace