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!

Exception.SetObjectData

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

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

Parameters

info
An object to hold the data.
context
[To be supplied.]

Return Value

The value of the object containing the StreamingContext.

Exceptions

Exception Type Condition
ArgumentNullException If the object is null.
System.SerizaliationException If it isn't a constructor.

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

Exception Class | Exception Members | System Namespace