Specifies that the data member can not serialized.
transient member-declarator
The__transient keyword specifies that the value of the variable is not serialized (or saved) along with other data stored in the class object.
Note The __transient keyword can only be applied to data members of a garbage-collected class.
#using <mscorlib.dll> #using namespace System; __serializable __gc class MyClass { int i; //serializable __transient int ti; //not serializable };
Managed Extensions for C++ Keywords | C++ Keywords | __serializable