RemotingSurrogateSelector 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
에서 파생되는 개체를 serialize하는 데 사용할 수 있는 원격 서로게이트를 MarshalByRefObject선택합니다.
public ref class RemotingSurrogateSelector : System::Runtime::Serialization::ISurrogateSelector
public class RemotingSurrogateSelector : System.Runtime.Serialization.ISurrogateSelector
[System.Runtime.InteropServices.ComVisible(true)]
public class RemotingSurrogateSelector : System.Runtime.Serialization.ISurrogateSelector
[System.Runtime.InteropServices.ComVisible(true)]
[System.Security.SecurityCritical]
public class RemotingSurrogateSelector : System.Runtime.Serialization.ISurrogateSelector
type RemotingSurrogateSelector = class
interface ISurrogateSelector
[<System.Runtime.InteropServices.ComVisible(true)>]
type RemotingSurrogateSelector = class
interface ISurrogateSelector
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Security.SecurityCritical>]
type RemotingSurrogateSelector = class
interface ISurrogateSelector
Public Class RemotingSurrogateSelector
Implements ISurrogateSelector
- 상속
-
RemotingSurrogateSelector
- 특성
- 구현
설명
서로게이트는 개체의 serialization 요구 사항을 처리할 수 있는 개체입니다. 원격 서로게이트는 에서 파생되는 MarshalByRefObject개체의 원격 serialization 요구 사항을 처리합니다. 및 RemotingSurrogateSelector 에서 사용할 등록된 서로게이트를 BinaryFormatterSoapFormatter관리합니다.
원격 용도로 MarshalByRefObjectserialization하는 동안 원격 서로게이트는 원격 개체를 활성화하고 통신하는 데 필요한 모든 관련 정보를 포함하는 항목을 만듭니다 ObjRef . 그런 다음 새로 만든 ObjRef 위치를 원격 위치로 보내고 프록시를 만드는 데 사용할 수 있습니다.
메모
이 클래스는 클래스 수준에서 링크 요청 및 상속 요청을 만듭니다. 직접 호출자 또는 파생 클래스에 인프라 권한이 없는 경우 A SecurityException 가 throw됩니다. 보안 요구 사항에 대한 자세한 내용은 링크 요구를 참조하세요.
생성자
| Name | Description |
|---|---|
| RemotingSurrogateSelector() |
RemotingSurrogateSelector 클래스의 새 인스턴스를 초기화합니다. |
속성
| Name | Description |
|---|---|
| Filter |
의 MessageSurrogateFilter 현재 인스턴스 RemotingSurrogateSelector에 대한 대리자를 가져오거나 설정합니다. |
메서드
| Name | Description |
|---|---|
| ChainSelector(ISurrogateSelector) |
서로게이트 선택기 체인에 지정된 ISurrogateSelector 값을 추가합니다. |
| Equals(Object) |
지정한 개체와 현재 개체가 같은지 여부를 확인합니다. (다음에서 상속됨 Object) |
| GetHashCode() |
기본 해시 함수로 작동합니다. (다음에서 상속됨 Object) |
| GetNextSelector() |
서로게이트 선택기의 체인에서 다음 ISurrogateSelector 을 반환합니다. |
| GetRootObject() |
개체 그래프의 루트에 있는 개체를 반환합니다. |
| GetSurrogate(Type, StreamingContext, ISurrogateSelector) |
지정된 컨텍스트에서 지정된 형식에 대한 적절한 서로게이트를 반환합니다. |
| GetType() |
현재 인스턴스의 Type 가져옵니다. (다음에서 상속됨 Object) |
| MemberwiseClone() |
현재 Object단순 복사본을 만듭니다. (다음에서 상속됨 Object) |
| SetRootObject(Object) |
개체 그래프의 루트에 있는 개체를 설정합니다. |
| ToString() |
현재 개체를 나타내는 문자열을 반환합니다. (다음에서 상속됨 Object) |
| UseSoapFormat() |
SOAP 형식을 사용하도록 현재 서로게이트 선택기를 설정합니다. |