ManagementObject.GetObjectData(SerializationInfo, StreamingContext) 方法

定义

用反序列化此实例所表示的字段所必需的数据填充 SerializationInfoPopulates a SerializationInfo with the data necessary to deserialize the field represented by this instance.

protected:
 override void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected override void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Protected Overrides Sub GetObjectData (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

用序列化信息填充的对象。The object to be populated with serialization information.

context
StreamingContext

将在其中存储和检索序列化数据的位置。The location where serialized data will be stored and retrieved.

注解

.NET Framework 安全性.NET Framework Security

对直接调用方的完全信任。Full trust for the immediate caller. 此成员不能由部分信任的代码使用。This member cannot be used by partially trusted code. 有关详细信息,请参阅从部分受信任的代码使用库For more information, see Using Libraries from Partially Trusted Code.

适用于