将C#代码转换为vb [英] Conversion of a C# code to vb
本文介绍了将C#代码转换为vb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
您能否提供以下C#代码的vb版本:
Hi All,
Could you pls suggest the vb version of the following C# code:
if (HttpContext.Current.Request.IsSecureConnection.Equals(false) && HttpContext.Current.Request.IsLocal.Equals(false))
{
Response.Redirect("https://" + Request.ServerVariables["HTTP_HOST"]
+ HttpContext.Current.Request.RawUrl);
}
提前致谢
Atul
Thanks in advance
Atul
推荐答案
Hi Atul,
以下是您转换后的VB代码: -
Hi Atul,
Following is your converted code for VB:-
If HttpContext.Current.Request.IsSecureConnection.Equals(False) AndAlso HttpContext.Current.Request.IsLocal.Equals(False) Then
Response.Redirect("https://" + Request.ServerVariables("HTTP_HOST") + HttpContext.Current.Request.RawUrl)
End If
要转换更多代码,请使用以下链接: -
http://converter.telerik.com/ [ ^ ]
谢谢,
Mukesh
To convert more codes use below link:-
http://converter.telerik.com/[^]
Thanks,
Mukesh
这篇关于将C#代码转换为vb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文