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!

__transient

Specifies that the data member can not serialized.

transient member-declarator

Remarks

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.

Example

#using <mscorlib.dll>
#using namespace System;

__serializable __gc class MyClass
{
   int i;  //serializable
   __transient   int ti;  //not serializable
};

See Also

Managed Extensions for C++ Keywords | C++ Keywords | __serializable