CodeStruct2.DocComment 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置当前的文档注释 CodeStruct 。
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(1024)] get; [System.Runtime.InteropServices.DispId(37)] [System.Runtime.InteropServices.TypeLibFunc(1024)] set; }
[<System.Runtime.InteropServices.DispId(37)>]
[<get: System.Runtime.InteropServices.DispId(37)>]
[<get: System.Runtime.InteropServices.TypeLibFunc(1024)>]
[<set: System.Runtime.InteropServices.DispId(37)>]
[<set: System.Runtime.InteropServices.TypeLibFunc(1024)>]
member this.DocComment : string with get, set
Public Property DocComment As String
属性值
当前的文档注释 CodeStruct 。
实现
- 属性
注解
DocComment 如果代码中有一个,则返回特殊文档注释或属性。 如果实现代码模型的语言没有文档注释机制,或没有与代码元素相关联的任何内容,则 DocComment 返回一个空字符串。
备注
对于源代码中的代码元素,此属性是只读的 Visual Basic 。
此外,在进行某些类型的编辑之后,代码模型元素(例如类、结构、函数、特性、委托等)的值可能是不确定的,这意味着无法依赖于它们的值始终保持不变。