开发者

What does the MaxOccurs property of Mono.GetOptions.OptionAttribute do?

Mono Documentation

The documentation i开发者_如何学Cs missing here. What does it do?


It's the maximum number of times you can specify a particular option. For example, if MaxOptions is 2 for a particular option -c, something like foo -c apple -c banana is fine, but foo -c apple -c banana -c coconut is an error. If you leave MaxOccurs at 0, there is no limit to the number of times you can include an option.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜