QueryStringBuilder.BuildUrl (String, Boolean) 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 _
) As System.String
[C#]
public System.String BuildUrl(System.Stringfilename,
System.Booleansecure);
Parameters
[Visual Basic .NET]
- filename
The name of the file. - secure
The Boolean secure flag, set to True for https, 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.
[C#]
- filename
The name of the file. - secure
The Boolean secure flag, set to True for https, 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.
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.