StreamingContextStates 열거형

정의

주의

Formatter-based serialization is obsolete and should not be used.

serialization 도중 스트림의 소스 또는 대상 컨텍스트를 지정하는 플래그 집합을 정의합니다.

이 열거형은 멤버 값의 비트 조합을 지원합니다.

public enum class StreamingContextStates
[System.Flags]
public enum StreamingContextStates
[System.Flags]
[System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public enum StreamingContextStates
[System.Flags]
[System.Serializable]
public enum StreamingContextStates
[System.Flags]
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public enum StreamingContextStates
[<System.Flags>]
type StreamingContextStates = 
[<System.Flags>]
[<System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type StreamingContextStates = 
[<System.Flags>]
[<System.Serializable>]
type StreamingContextStates = 
[<System.Flags>]
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type StreamingContextStates = 
Public Enum StreamingContextStates
상속
StreamingContextStates
특성

필드

All 255

serialize된 데이터를 다른 컨텍스트로 전송하거나 다른 컨텍스트에서 수신할 수 있음을 지정합니다.

Clone 64

개체 그래프가 복제될 것임을 지정합니다. 사용자는 복제된 그래프가 동일한 프로세스 내에 계속 존재하고 관리되지 않는 리소스에 대한 핸들 또는 기타 참조에 액세스해도 안전할 것이라고 가정할 수 있습니다.

CrossAppDomain 128

소스 또는 대상 컨텍스트가 다른 AppDomain임을 지정합니다. (AppDomain에 대한 설명을 보려면 애플리케이션 도메인을 참조하세요.)

CrossMachine 2

소스 또는 대상 컨텍스트가 다른 컴퓨터임을 지정합니다.

CrossProcess 1

소스 또는 대상 컨텍스트가 동일한 컴퓨터의 다른 프로세스임을 지정합니다.

File 4

소스 또는 대상 컨텍스트가 파일임을 지정합니다. 사용자는 파일이 해당 파일을 만든 프로세스보다 더 오래 지속될 것이며 deserialization 중에 현재 프로세스의 데이터에 대한 액세스를 요구하는 방식으로 개체를 serialize하지 않을 것으로 가정할 수 있습니다.

Other 32

serialization 컨텍스트를 알 수 없는 것으로 지정합니다.

Persistence 8

소스 또는 대상 컨텍스트가 데이터베이스, 파일 또는 다른 백업 저장소를 포함할 수 있는 지속형 저장소임을 지정합니다. 사용자는 지속형 데이터가 해당 데이터를 만든 프로세스보다 더 오래 지속될 것이며 deserialization 중에 현재 프로세스의 데이터에 대한 액세스를 요구하도록 개체를 serialize하지 않을 것으로 가정할 수 있습니다.

Remoting 16

데이터가 알 수 없는 위치의 컨텍스트에 원격임을 지정합니다. 사용자는 데이터가 동일한 컴퓨터에 있는지 여부를 가정할 수 없습니다.

적용 대상

추가 정보