![](/img/trans.png)
[英].NET API Documentation with DocFX - How to properly display a method call in a code example
[英]DocFX - Unable to filter out public Method from API Documentation
我的类库中有以下方法,我想从 API 文档中隐藏它:
namespace com.contoso.myns
{
public class myclass
{
public static string CreateSomething()
{
//Do Stuff
}
}
}
我按照DocFX 教程过滤 API 文档来创建filterConfig.yml 。 在该文件中,我有以下内容:
- exclude:
uidRegex: '^com\.contoso\.myns\.myclass\.Create[^.]+$'
type: Method
但是,该方法仍然出现在我的文档中。
请注意:
任何帮助将不胜感激。
匹配方法名称的模式不应包含命名空间中的整个路径; 只是方法名称本身:
- exclude:
uidRegex: 'CreateSomething$'
type: Method
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.