获取所有已定义的 ClassificationTypeDefinitions?
所以我只是尝试创建一个新的分类类型,
[Export(typeof(ClassificationTypeDefinition))]
[Name("String")]
internal static ClassificationTypeDefinition _stringClassType;
但后来我收到一个重复的 ClassificationTypeDefinition 错误,告诉我“String”已经被定义。我没有在其他地方定义它。当我将其重命名为“String2”后,它就消失了。我猜测这些已经由 VS 定义了...我可以获取预定义列表,以便我知道要避免哪些(或者我可以使用哪些)吗?
So I just tried creating a new classification type,
[Export(typeof(ClassificationTypeDefinition))]
[Name("String")]
internal static ClassificationTypeDefinition _stringClassType;
But then I got a duplicate ClassificationTypeDefinition error telling me that "String" has already been defined. I didn't define it anywhere else. Soon as I renamed it to "String2" it went away. I'm guessing these are already defined by VS... can I get a list of the predefined ones so I know which to avoid (or which ones I can use)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
哎呀......猜猜这毕竟不是太难找到。
MSDN:PredefinedClassificationTypeNames 类
Oops.... guess that wasn't too hard to find after all.
MSDN: PredefinedClassificationTypeNames Class