Share via


ConsoleTaskInUserRoleScopeAlreadyExistsException.GetObjectData Method

Definition

Gets object data about this exception.

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)

Parameters

info
SerializationInfo

The serialized object that has data about the exception being thrown.

context
StreamingContext

The object that contains contextual information about the source or destination.

Remarks

Adds values of the console identifier and the user identifier to the SerializationInfo object. These are added as a key\value pair.

Key Value
UserRoleId The user role identifier.
ConsoleTaskId The console task identifier.

Applies to