Gets the object data for use during serialization. Namespace: Microsoft.ConfigurationManagement.ManagementProvider
Assembly: Microsoft.ConfigurationManagement.ManagementProvider (in microsoft.configurationmanagement.managementprovider.dll)

Usage

Visual Basic
Dim instance As SmsQueryException
Dim info As SerializationInfo
Dim context As StreamingContext

instance.GetObjectData(info, context)

Syntax

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

Parameters

info

[in] System.Runtime.Serialization.SerializationInfo object.

context

[in] System.Runtime.Serialization.StreamingContext structure value.

Exceptions

Exception type Condition
ArgumentNullException

The info parameter cannot be null.

Remarks

Your application must implement its own version of this method in a derived class.


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 Server 2003, Windows Vista

Target Platforms

Windows Server 2003,Windows Vista

See Also