可以在Sandcastle文档中包括自定义属性吗? [英] Is it possible to include custom attributes in Sandcastle documentation?

查看:104
本文介绍了可以在Sandcastle文档中包括自定义属性吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在Sandcastle文档中包含自定义属性?

Is it possible to include custom attributes in Sandcastle documentation?

例如,考虑以下c#方法:

For example, consider this c# method:

public void ExampleMethod
(
   [Required] string input1,
   [DefaultValue("example")] string input2
)

有什么方法可以使沙堡文档输出的input1具有必需的属性?

Is there any way to make Sandcastle documentation output that input1 has the required attribute?

推荐答案

这适用于属性和类,但我尚未在属性和字段上尝试过.描述表明它应该可以工作.

This works for attributes and classes, I haven't tried it on properties and fields yet. The description suggests it should work.

可能还需要打开内部成员".

It might be required to turn on "Internal members" on too.

不幸的是,记录的属性未链接.

Unfortunately the documented attributes are not linked.

这篇关于可以在Sandcastle文档中包括自定义属性吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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