English 中文(简体)
如何忽略公共类或方法的帮助文件构建者生成的文件?
原标题:How to ignore the documentation generated by Help file builder for Public Class or Methods?

我怎么能省略某些公共课程或方法,

例如:我有以下具有两种公共方法的公务班级:

/// <summary>
/// A simple test class.
/// </summary>
public class MyClass
{
    /// <summary>
    /// Method1s this instance.
    /// </summary>
    public void Method1()
    {
        // Do some operations here.
    }

    /// <summary>
    /// Method2s this instance.
    /// </summary>
    public void Method2()
    {
        // Do some operations here.
    }
}

当我使用 SandCastle 帮助文件构建器从此代码中生成帮助文件时, 我想忽略 < code> Method2 。

最佳回答

在您在 Sandcastle 的工程属性中, 在 Sandcastle 帮助文件构建器 GUI 中, 编辑 < code> ApiFilter 属性( 单击 "..." 按钮), 并取消检查您不想在帮助文件中看到的成员 。

问题回答

这是最新消息, 因为自Thomas Levesque发表评论后, UI似乎已改变, 也与我在网上找到的其他地方不同。

在最新版本的《沙尘尔》中,截至2014年5月31日,你必须经过三步才能到达。

  1. In the standalone UI, select the Project Properties tab.
  2. There should be a list of categories on the left. Select Visibility
  3. Click the Edit API Filter button; this is at the bottom of the from on the right side.

从那里,您可以找到 API 条目列表。您可以逐个取消分类、命名空间和类内项目(产权、字段、方法)中的选择项。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签