System.Runtime.Serialezation.StreamingContextState.cs

ylbtech-System.Runtime.Serialezation.StreamingContextState.cs

 

1. Back to top
1、
#regionassembly mscorlib, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089
 // C: \ Program Files (x86) \ Reference Assemblies \ Microsoft \ Framework \ .NETFramework \ v4.6.1 \ mscorlib.dll 
#endregion 

using System.Runtime.InteropServices; 

namespace System.Runtime.Serialization 
{ 
    // 
    // Summary:
     //      A set of flags that define the source or target context of the stream during serialization. 
    [ComVisible ( true )] 
    [Flags] 
    public  enum StreamingContextStates 
    { 
        // 
        // Summary:
         //      Specify the source or target context as different processes on the same computer. 
        CrossProcess = 1,
         // 
        // Summary:
         //      Specify the source or target context as a different computer. 
        CrossMachine = 2 ,
         // 
        // Summary:
         //      Specify the source or target context as a file. Users can assume that files will last longer than the process that created them, and will not serialize objects in a way that makes deserialization require access to any data from the current process. 
        File = 4 ,
         // 
        // Summary:
         //      Specify the source or target context as persistent storage, which can include databases, files, or other backing storage. The user can assume that persistent data will last longer than the process that created the data, and the object will not be serialized so that deserialization requires access to any data from the current process. 
        Persistence = 8 ,
         // 
        // Summary:
         //      Specify the context for remotely connecting data to an unknown location. The user cannot assume whether this is on the same computer. 
        Remoting =16 ,
         // 
        // Summary:
         //      Specify the serialization context as unknown. 
        Other = 32 ,
         // 
        // Summary:
         //      Specify the object graph as being cloned. The user can assume that the cloned graphics will continue to exist in the same process and can safely access handles or other references to unmanaged resources. 
        Clone = 64 ,
         // 
        // Summary:
         //      Specify the source or target context as a different AppDomain. (For an explanation of AppDomain, see Application Domain). 
        CrossAppDomain = 128 ,
         // 
        // Summary:
         //      Specify that the serialized data can be transmitted to or received from any other context. 
        All = 255 
    } 
}
2、
2. Back to top
 
3. Back to top
 
4. Back to top
 
5. Back to top
 
 
6. Back to top
 
warn Author: ylbtech
Source: http://ylbtech.cnblogs.com/
This article belongs to the author and blog Park total, welcome to reprint, but without the author's consent declared by this section must be retained, and given the original connection in the apparent position of the article page, otherwise Reserves the right to pursue legal responsibility.

Guess you like

Origin www.cnblogs.com/storebook/p/12677055.html