ConsoleTaskInUserRoleScopeNotAllowedException.GetObjectData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the SerializationInfo
object with information about the 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. |