Share via


QueryStringBuilder.BuildUrl (String, Boolean, String, String) Method (BCL)

Use this method to generate an encoded URL string.

Definition

[Visual Basic .NET]

Public Function BuildUrl( _ByValfilename As System.String, _
  ByValsecure As System.Boolean, _
  ByValurlParameterName As System.String, _
  ByValurlParameterValue As System.String _
) As System.String

[C#]

public System.String BuildUrl(System.Stringfilename,
  System.Booleansecure,
  System.StringurlParameterName,
  System.StringurlParameterValue);

Parameters

[Visual Basic .NET]

  • filename
    The name of the file.
  • secure
    The Boolean secure flag, which is set to True for https and set to False for http. Https will only be used for the URL if this flag is True and if the site is enabled for https.
  • urlParameterName
    A string containing the parameter name.
  • urlParameterValue
    A string of containing the parameter value.

[C#]

  • filename
    The name of the file.
  • secure
    The Boolean secure flag, which is set to True for https and set to False for http. Https will only be used for the URL if this flag is True and if the site is enabled for https.
  • urlParameterName
    A string containing the parameter name.
  • urlParameterValue
    A string of containing the parameter value.

Return Value

The encoded URL string.

Remarks

You have to use the QueryStringBuilder.BuildUrl method every time you want to append the ticket to the URL in a cookieless scenario. If this is not done, the ticket will not be passed on to the next request.

If the filename parameter is not null, the COM method AuthManager.GetURL is called. If the filename parameter is null, and if the CookieSupport property is set to True, then the AuthManager.UrlShopperArgs COM method is called. If the filename parameter is null and the CookieSupport property is set to False, then the AuthManager.UrlArgs COM method is called.

Requirements

Namespace: Microsoft.CommerceServer.Runtime

Platforms: Windows 2000, Windows Server 2003

Assembly: Microsoft.CommerceServer.Runtime.dll

Copyright © 2005 Microsoft Corporation.
All rights reserved.