XmlILStorageConverter.TimeSpanToAtomicValue 方法

定义

将值 TimeSpan 转换为 XmlAtomicValue.

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 static System::Xml::Schema::XmlAtomicValue ^ TimeSpanToAtomicValue(TimeSpan value, int index, System::Xml::Xsl::Runtime::XmlQueryRuntime ^ runtime);
public static System.Xml.Schema.XmlAtomicValue TimeSpanToAtomicValue(TimeSpan value, int index, System.Xml.Xsl.Runtime.XmlQueryRuntime runtime);
static member TimeSpanToAtomicValue : TimeSpan * int * System.Xml.Xsl.Runtime.XmlQueryRuntime -> System.Xml.Schema.XmlAtomicValue
Public Shared Function TimeSpanToAtomicValue (value As TimeSpan, index As Integer, runtime As XmlQueryRuntime) As XmlAtomicValue

参数

value
TimeSpan

要转换的类型 TimeSpan 值。

index
Int32

一个类型 Int32 值,它提供要转换的项的索引。

runtime
XmlQueryRuntime

XmlQueryRuntime 类的实例。

返回

XmlAtomicValue 的对象 TimeSpan

适用于