NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ArgumentException.SetObjectData

Sets the object that contains the context of the data from the source or destination.

[Visual Basic]
Overrides Public Sub SetObjectData( _
   ByVal info As SerializationInfo, _
   ByVal context As StreamingContext _
)
[C#]
public override void SetObjectData(
   SerializationInfo info,
   StreamingContext context
);
[C++]
public: override void SetObjectData(
   SerializationInfo* info,
   StreamingContext context
);
[JScript]
public override function SetObjectData(
   info : SerializationInfo,
   context : StreamingContext
);

Parameters

info
An object to hold the data.
context
The data obtained.

Return Value

The value of the object containing the StreamingContext.

Exceptions

Exception Type Condition
ArgumentNullException If the object is null.

Remarks

This method sets the StreamingContext to return the value of the object that holds the source and/or destination of a given serialized stream (see SerializationInfo).

See Also

ArgumentException Class | ArgumentException Members | System Namespace