Share via


InvalidMonitoringClassInUserRoleScopeException.GetObjectData Method

Sets the parameters required to serialize this instance of the InvalidMonitoringClassInUserRoleScopeException class.

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

Usage

'Usage
Dim instance As InvalidMonitoringClassInUserRoleScopeException
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 object that holds the serialized data about the exception.
  • context
    Context information about the source or destination of the serialized object.

Remarks

GetObjectData sets a SerializationInfo with all the exception object data targeted for serialization. During deserialization, the exception is reconstituted from the SerializationInfo transmitted over the stream.

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

InvalidMonitoringClassInUserRoleScopeException Class
InvalidMonitoringClassInUserRoleScopeException Members
Microsoft.EnterpriseManagement.Common Namespace