ManagementException.GetObjectData(SerializationInfo, StreamingContext) 方法

定義

將序列化 SerializationInfo 所需的資料填入 (Populate) ManagementExceptionPopulates the SerializationInfo with the data needed to serialize the ManagementException.

public:
 override void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
public 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
Public Overrides Sub GetObjectData (info As SerializationInfo, context As StreamingContext)

參數

info
SerializationInfo

要以資料填入的 SerializationInfoThe SerializationInfo to populate with data.

context
StreamingContext

這個序列化的 StreamingContext 目的端。The StreamingContext destination for this serialization.

備註

.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.

適用於

另請參閱