ManagementBaseObject.ISerializable.GetObjectData 方法

定義

實作 ISerializable 介面,並傳回序列化 ManagementBaseObject 所需的資料。

 virtual void System.Runtime.Serialization.ISerializable.GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context) = System::Runtime::Serialization::ISerializable::GetObjectData;
void ISerializable.GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
abstract member System.Runtime.Serialization.ISerializable.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
override this.System.Runtime.Serialization.ISerializable.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Sub GetObjectData (info As SerializationInfo, context As StreamingContext) Implements ISerializable.GetObjectData

參數

info
SerializationInfo

SerializationInfo,含有要序列化 ManagementBaseObject 的必要資訊。

context
StreamingContext

StreamingContext,包含與 ManagementBaseObject 相關聯序列化資料流的來源和目的端。

實作

例外狀況

infonull

適用於