将字符串转换为 AtomTextConstruct 实例。
命名空间: Microsoft.Data.OData.Atom
程序集: Microsoft.Data.OData(在 Microsoft.Data.OData.dll 中)
语法
声明
Public Shared Widening Operator CType ( _
text As String _
) As AtomTextConstruct
用法
Dim input As String
Dim output As AtomTextConstruct
output = CType(input, AtomTextConstruct)
public static implicit operator AtomTextConstruct (
string text
)
static implicit operator AtomTextConstruct^ (
String^ text
)
JScript 支持使用自定义转换,但不支持声明新自定义转换。
参数
- text
类型:System.String
文本值。
返回值
类型:Microsoft.Data.OData.Atom.AtomTextConstruct
为 text 创建的 AtomTextConstruct 实例。