开发者

Get all defined ClassificationTypeDefinitions?

开发者 https://www.devze.com 2023-04-07 17:15 出处:网络
So I just tried creating a new classification type, [Export(typeof(ClassificationTypeDefinition))] [Name(\"String\")]

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. Soo开发者_JAVA百科n 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)?


Oops.... guess that wasn't too hard to find after all.

MSDN: PredefinedClassificationTypeNames Class

0

精彩评论

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