閱讀英文 編輯

共用方式為


ComposablePartException.GetObjectData Method

Definition

Caution

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

Gets the serialization data for the exception.

[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public override void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Security.SecurityCritical]
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);

Parameters

info
SerializationInfo

After calling the method, contains serialized object data about the ComposablePartException.

context
StreamingContext

After calling the method, contains contextual information about the source or destination.

Attributes

Exceptions

info is null.

Applies to

產品 版本 (已淘汰)
.NET (8 (package-provided), 9 (package-provided))
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)