警告消息:名称'_ClassColumn'不符合CLS。 [英] Warning Msg: Name '_ClassColumn' is not CLS-compliant.
问题描述
我将vb.1.1 Web服务项目转换为2.0并创建了.net 2.0 / b $ b替换了一些数据集。它自动生成的代码会收到一条警告
消息如下:
警告150名称''_ClassColumn''不符合CLS。
C:\ WINDOWS \ Microsoft.NET.NET \ Framework \v2.0.50727 \Temp orary ASP.NET
Files\wsvipn2006\4b065968\dadaeae0\Sources_App_Cod e\wsvipn2006.dsuser.xsd.8a6308fa.vb
2606 38 http:/ / localhost / wsVIPN2006 /
我正在尝试完成所有项目并在
转换为2.0后解决所有警告。我怎样才能解决这个问题呢?
-
mo *******@nospam.nosp am
I converted a vb.1.1 web service project to 2.0 and .net 2.0 created /
replace some datasets. The code it automatiacly generated gets a warning
message as follows:
Warning 150 Name ''_ClassColumn'' is not CLS-compliant.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\wsvipn2006\4b065968\dadaeae0\Sources_App_Cod e\wsvipn2006.dsuser.xsd.8a6308fa.vb
2606 38 http://localhost/wsVIPN2006/
I''m trying to go through all my projects and to resolve all warnings after
converting to 2.0. How can I resolve this with out corrupting things?
--
mo*******@nospam.nospam
推荐答案
你好moondaddy,
如果你双击警告,哪一行代码就停止了?
你能在这里粘贴那部分代码吗?
Kevin Yu
=======
此帖子已提供按现状没有保证,并且不授予
权利。
Hi moondaddy,
If you double click on the warning, which line of code does the stops on?
Could you paste that part of code here?
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
< System.Diagnostics.DebuggerNonUserCodeAttribute()> _ Public ReadOnly
属性_RegionColumn()As System.Data.DataColumn
获取
返回Me.column_Region
结束获取
结束物业
这里有相应的警告
警告151姓名''_RegionColumn ''不符合CLS。
C:\ WINDOWS \ MicroStoswork.NET \ Framework \v2.0.50727 \Temp orary ASP.NET
Files \wsvipn2006 \4b065968\dadaeae0 \Sources_App_Cod e \\\wsvipn2006.dsuser.xsd.8a
6308fa.vb 2620 38 http:// localhost / wsVIPN2006 /
谢谢。
-
mo*******@nospam.nosp am
Kevin Yu [MSFT]" <,V - **** @ online.microsoft.com>在消息中写道
新闻:iF ************* @ TK2MSFTNGXA02.phx.gbl ...
<System.Diagnostics.DebuggerNonUserCodeAttribute() > _ Public ReadOnly
Property _RegionColumn() As System.Data.DataColumn
Get
Return Me.column_Region
End Get
End Property
And here''s the corisponding warning
Warning 151 Name ''_RegionColumn'' is not CLS-compliant.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\wsvipn2006\4b065968\dadaeae0\Sources_App_Cod e\wsvipn2006.dsuser.xsd.8a
6308fa.vb 2620 38 http://localhost/wsVIPN2006/
Thanks.
--
mo*******@nospam.nospam
"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:iF*************@TK2MSFTNGXA02.phx.gbl...
你好moondaddy,>
如果你双击警告,那么代码行停在哪里?
你能在这里粘贴那部分代码吗?
Kevin Yu
= ======
此帖子是按原样提供的没有保证,也没有授予
权利。
Hi moondaddy,
If you double click on the warning, which line of code does the stops on?
Could you paste that part of code here?
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Moondaddy,
它可以因为代码首先是作为C#创建的。
看看column_Region是否可能是公共/朋友声明的
同名的某个地方,但有一个其他大/小写。这可以在
C#中使用,但不符合CLS。
我希望这会有所帮助,
Cor
Moondaddy,
It can be that the code is created first as C#.
Have a look if the column_Region is maybe public/friend declared with the
same name somewhere but with an other upper/lower case. This is allowed in
C# but is not CLS compliant.
I hope this helps,
Cor
这篇关于警告消息:名称'_ClassColumn'不符合CLS。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!