模块中的声明之间的“设置”不明确 [英] 'Settings' is ambiguous between declarations in Modules

查看:81
本文介绍了模块中的声明之间的“设置”不明确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个布尔设置  -CoRoundingReset设置为False。


在我检查时的代码中 - 如果My.Settings.CoRoundingReset = False ...评估为False(s / b True)


当我尝试使用立即模式查看设置时:


?My.Settings.CoRoundedReset.ToString我在即时窗口中收到以下错误消息:


模块'gpi.PayBreezeII.My.MySettingsProperty'和'gpi.PayBreezeII.My.MySettingsProperty'中的声明之间'设置'不明确。


这两个模块完全相同 - 这条消息的意思是什么?





Terry

解决方案

 这意味着您有两个相同的名称位于两个不同的类或模块中,这些类或模块都暴露给您的代码。 它不知道你指的是哪一个。 您需要重命名其中一个。


含糊不清的意思










I have a Boolean setting  -CoRoundingReset which is set to False.

In code when I check it - If My.Settings.CoRoundingReset = False ... which evaluates to False (s/b True)

When I try to use immediate mode to view the setting:

?My.Settings.CoRoundedReset.ToString I get the following error message in the immediate window:

'Settings' is ambiguous between declarations in Modules 'gpi.PayBreezeII.My.MySettingsProperty' and 'gpi.PayBreezeII.My.MySettingsProperty'.

The two modules are identical - what the heck does this message mean?


Terry

解决方案

 It means that you have two names that are the same located in two different classes or modules which are both exposed to your code.  It does not know which one you are referring to.  You will need to rename one of them.

Ambiguous Meaning


这篇关于模块中的声明之间的“设置”不明确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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