RemotingConfiguration 类

定义

提供用于配置远程处理基础结构的各种静态方法。

public ref class RemotingConfiguration
public ref class RemotingConfiguration abstract sealed
public class RemotingConfiguration
[System.Runtime.InteropServices.ComVisible(true)]
public static class RemotingConfiguration
type RemotingConfiguration = class
[<System.Runtime.InteropServices.ComVisible(true)>]
type RemotingConfiguration = class
Public Class RemotingConfiguration
继承
RemotingConfiguration
属性

属性

名称 说明
ApplicationId

获取当前正在执行的应用程序的 ID。

ApplicationName

获取或设置远程处理应用程序的名称。

CustomErrorsMode

获取或设置一个值,该值指示如何处理自定义错误。

ProcessId

获取当前正在执行的进程的 ID。

方法

名称 说明
Configure(String, Boolean)

读取配置文件并配置远程处理基础结构。

Configure(String)
已过时.

读取配置文件并配置远程处理基础结构。 Configure(String) 已过时。 请改用 Configure(String, Boolean)

CustomErrorsEnabled(Boolean)

指示此应用程序域中的服务器通道是否向本地或远程调用方返回筛选的或完整的异常信息。

GetRegisteredActivatedClientTypes()

检索在客户端上注册为将远程激活的类型的对象类型的数组。

GetRegisteredActivatedServiceTypes()

检索在服务端注册的对象类型的数组,这些对象类型可在客户端请求时激活。

GetRegisteredWellKnownClientTypes()

检索客户端上注册的对象类型的数组以及已知类型。

GetRegisteredWellKnownServiceTypes()

检索服务端注册的对象类型的数组以及已知类型。

IsActivationAllowed(Type)

返回一个布尔值,该值指示是否 Type 允许指定客户端激活。

IsRemotelyActivatedClientType(String, String)

检查由其类型名称和程序集名称指定的对象是否注册为远程激活的客户端类型。

IsRemotelyActivatedClientType(Type)

检查指定的对象 Type 是否已注册为远程激活的客户端类型。

IsWellKnownClientType(String, String)

检查由其类型名称和程序集名称指定的对象是否注册为已知客户端类型。

IsWellKnownClientType(Type)

检查指定的对象 Type 是否已注册为已知客户端类型。

RegisterActivatedClientType(ActivatedClientTypeEntry)

将客户端端提供的记录Type的对象ActivatedClientTypeEntry注册为可在服务器上激活的类型。

RegisterActivatedClientType(Type, String)

使用给定的参数初始化类的新实例,将客户端端上的对象 Type 注册为可在服务器上激活的类型 ActivatedClientTypeEntry

RegisterActivatedServiceType(ActivatedServiceTypeEntry)

将服务端上提供的 ActivatedServiceTypeEntry 一个对象类型注册为可在客户端请求时激活的对象类型。

RegisterActivatedServiceType(Type)

将服务端上的指定对象类型注册为可在客户端请求时激活的类型。

RegisterWellKnownClientType(Type, String)

Type使用给定参数初始化类的新实例,将客户端端的对象注册为可在服务器上激活的WellKnownClientTypeEntry已知类型。

RegisterWellKnownClientType(WellKnownClientTypeEntry)

将客户端端上提供的Type记录的对象WellKnownClientTypeEntry注册为可在服务器上激活的已知类型。

RegisterWellKnownServiceType(Type, String, WellKnownObjectMode)

Type使用给定的参数将服务端的对象注册为已知类型,以初始化新实例WellKnownServiceTypeEntry

RegisterWellKnownServiceType(WellKnownServiceTypeEntry)

将服务端上提供的Type记录的对象WellKnownServiceTypeEntry注册为已知类型。

适用于