PersistStreamTypeWrapper.SetObject<T>(T) Method

Definition

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

C#
public void SetObject<T>(T obj);

Type Parameters

T

The object type.

Parameters

obj
T

The object to be persisted to the byte stream.

Remarks

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

Applies to

Proizvod Verzije
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1