最大。字符串的长度和最大值在c#中使用ado.net时的查询字符串长度 [英] Max. length of the string and max. Query String Length when using ado.net in c#

查看:106
本文介绍了最大。字符串的长度和最大值在c#中使用ado.net时的查询字符串长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最大值是多少在c中使用时字符串变量的长度#



并告诉我最大值。在c中使用ado.net时查询字符串长度#



Plz告诉Exact Figure

what is the max. length of the string variable when using in c#

And also tell me the max. Query String Length when using ado.net in c#

Plz tell Exact Figure

推荐答案

理论上的限制可能 2,147,483,647 字符,但实际限制远不止于此。由于.Net程序中没有单个对象可能超过2GB且字符串类型使用unicode(每个字符2个字节),所以你能做的最好是 1,073,741,823 ,但你不可能永远能够在32位机器上分配它。



查询字符串的最大长度取决于在浏览器上。阅读..

最大长度查询字符串? [ ^ ]
The theoretical limit may be 2,147,483,647 chars but the practical limit is nowhere near that. Since no single object in a .Net program may be over 2GB and the string type uses unicode (2 bytes for each character), the best you could do is 1,073,741,823, but you're not likely to ever be able to allocate that on a 32-bit machine.

And,maximum length of Query String depends on browser.Refer..
Maximum length of Query String?[^]


这篇关于最大。字符串的长度和最大值在c#中使用ado.net时的查询字符串长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆