DateTimeOffset.ISerializable.GetObjectData(SerializationInfo, StreamingContext) 方法

定义

使用序列化当前 SerializationInfo 对象所需的数据来填充 DateTimeOffset 对象。Populates a SerializationInfo object with the data required to serialize the current DateTimeOffset object.

 virtual void System.Runtime.Serialization.ISerializable.GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context) = System::Runtime::Serialization::ISerializable::GetObjectData;
[System.Security.SecurityCritical]
void ISerializable.GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
Sub GetObjectData (info As SerializationInfo, context As StreamingContext) Implements ISerializable.GetObjectData

参数

info
SerializationInfo

要用数据填充的 对象。The object to populate with data.

context
StreamingContext

此序列化的目标(请参见 StreamingContext)。The destination for this serialization (see StreamingContext).

实现

属性

异常

info 参数为 nullThe info parameter is null.

安全性

SecurityCriticalAttribute
需要对直接调用方的完全信任。requires full trust for the immediate caller. 部分受信任的或透明的代码不能使用此成员。This member cannot be used by partially trusted or transparent code.

适用于