gpt4 book ai didi

vb.net - "Argument not specified for parameter",但已指定

转载 作者:行者123 更新时间:2023-12-02 05:42:15 26 4
gpt4 key购买 nike

我正在尝试将一些参数传递到数据注释中,但它拒绝了我的命名参数。见下文:

enter image description here

它与 Microsoft's documentation for the TableAttribute 中的语法完全相同,除了在文档中它们有一个大写的 N,但 VS 中参数的智能感知要求一个小写的 n。

编辑:在得到 2 个好的答案后,我只想解释一下为什么我认为我首先可以做到这一点。看起来构造函数已更新,但工具提示并未更新,因为这是在您获得语法提示时显示的内容:

enter image description here

而且我需要能够指定架构。但现在我找到了另一种方法。

编辑#2:为什么我首先要尝试命名参数;因为这不起作用。

enter image description here

编辑 #3: 显然我错过了尝试使用这种有效语法的机会。多亏了 Damien 才弄明白。

enter image description here

最佳答案

你看错了TableAttribute .来自 DataAnnotations 命名空间的那个需要一个 constructor (non-named) name参数。

关于vb.net - "Argument not specified for parameter",但已指定,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10801557/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com