CodeTypeRef2.AsString 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取用于显示对象的字符串 CodeTypeRef 。
public:
property System::String ^ AsString { System::String ^ get(); };
public:
property Platform::String ^ AsString { Platform::String ^ get(); };
[System.Runtime.InteropServices.DispId(6)]
public string AsString { [System.Runtime.InteropServices.DispId(6)] get; }
[<System.Runtime.InteropServices.DispId(6)>]
[<get: System.Runtime.InteropServices.DispId(6)>]
member this.AsString : string
Public ReadOnly Property AsString As String
属性值
用于显示对象的字符串 CodeTypeRef 。
实现
- 属性
注解
AsString 以正在建模的语言返回的字符串表示形式 CodeTypeRef 。 例如,如果 vsCMTypeRef 类型为 vsCMTypeRefInt ,则字符串将为 "Int",对于为 Visual C# "Long" Visual Basic 。
备注
在进行了某些类型的编辑之后,代码模型元素(例如类、结构、函数、特性、委托等)的值可能变为非确定性的,这意味着不能确定它们的值始终保持不变。