VCCodeEnum.DocComment 属性

定义

获取或设置当前代码模型元素的文档注释。

public:
 property System::String ^ DocComment { System::String ^ get(); void set(System::String ^ value); };
public:
 property Platform::String ^ DocComment { Platform::String ^ get(); void set(Platform::String ^ value); };
[System.Runtime.InteropServices.DispId(37)]
public string DocComment { [System.Runtime.InteropServices.DispId(37)] [System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)] get; [System.Runtime.InteropServices.DispId(37)] [System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)] set; }
[<System.Runtime.InteropServices.DispId(37)>]
[<get: System.Runtime.InteropServices.DispId(37)>]
[<get: System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)>]
[<set: System.Runtime.InteropServices.DispId(37)>]
[<set: System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)>]
member this.DocComment : string with get, set
Public Property DocComment As String

属性值

String

当前代码模型元素的文档注释。

属性

注解

DocComment 如果代码中有一个,则返回特殊文档注释或属性。 如果实现代码模型的语言没有文档注释机制,或没有与代码元素相关联的任何内容,则 DocComment 返回一个空字符串。

备注

对于 Visual Basic 源代码中的代码元素,此属性是只读的。

适用于