PersistStreamTypeWrapper.SetObject<T> Method (T)

 

Uses the IPersistStream interface of the object to serialize that object to a byte stream.

Namespace:   System.ServiceModel.ComIntegration
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

[PermissionSetAttribute(SecurityAction.Demand, Unrestricted = true)]
public void SetObject<T>(
	T obj
)

Parameters

obj
Type: T

The object to be persisted to the byte stream.

Type Parameters

T

The object type.

The object to be persisted to the byte stream must be a COM object.

.NET Framework
Available since 3.0
Return to top
Show: