Partager via


ConsoleTaskInUserRoleScopeAlreadyExistsException.GetObjectData Method

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Gets object data about this exception.

Namespace: Microsoft.EnterpriseManagement.Common
Assembly: Microsoft.EnterpriseManagement.Core (in Microsoft.EnterpriseManagement.Core.dll)

Usage

'Usage
Dim instance As ConsoleTaskInUserRoleScopeAlreadyExistsException
Dim info As SerializationInfo
Dim context As StreamingContext

instance.GetObjectData(info, context)

Syntax

'Declaration
<SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter:=True)> _
Public Overrides Sub GetObjectData ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
[SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter=true)] 
public override void GetObjectData (
    SerializationInfo info,
    StreamingContext context
)
[SecurityPermissionAttribute(SecurityAction::Demand, SerializationFormatter=true)] 
public:
virtual void GetObjectData (
    SerializationInfo^ info, 
    StreamingContext context
) override
/** @attribute SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter=true) */ 
public void GetObjectData (
    SerializationInfo info, 
    StreamingContext context
)
public override function GetObjectData (
    info : SerializationInfo, 
    context : StreamingContext
)

Parameters

  • info
    The serialized object that has data about the exception being thrown.
  • context
    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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms

Windows Server 2008,Windows Server 2003

See Also

Reference

ConsoleTaskInUserRoleScopeAlreadyExistsException Class
ConsoleTaskInUserRoleScopeAlreadyExistsException Members
Microsoft.EnterpriseManagement.Common Namespace