QueryStringBuilder.BuildUrl (String, Boolean, String, String, String, String, 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, _
ByValurlParameterName2 As System.String, _
ByValurlParameterValue2 As System.String, _
ByValurlParameterName3 As System.String, _
ByValurlParameterValue3 As System.String _
) As System.String
[C#]
public System.String BuildUrl(System.Stringfilename,
System.Booleansecure,
System.StringurlParameterName,
System.StringurlParameterValue,
System.StringurlParameterName2,
System.StringurlParameterValue2,
System.StringurlParameterName3,
System.StringurlParameterValue3);
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
Name of the first property. - urlParameterValue
Value of the first property. - urlParameterName2
Name of the second property. - urlParameterValue2
Value of the second property. - urlParameterName3
Name of the third property. - urlParameterValue3
Value of the third property.
[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
Name of the first property. - urlParameterValue
Value of the first property. - urlParameterName2
Name of the second property. - urlParameterValue2
Value of the second property. - urlParameterName3
Name of the third property. - urlParameterValue3
Value of the third property.
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.