RemotingConfiguration.Configure Método
Definição
Sobrecargas
| Configure(String) |
Obsoleto.
Obsoleto.
Lê o arquivo de configuração e configura a infraestrutura de comunicação remota.Reads the configuration file and configures the remoting infrastructure. Configure(String) é obsoleto.Configure(String) is obsolete. Use Configure(String, Boolean) em seu lugar.Please use Configure(String, Boolean) instead. |
| Configure(String, Boolean) |
Lê o arquivo de configuração e configura a infraestrutura de comunicação remota.Reads the configuration file and configures the remoting infrastructure. |
Configure(String)
Cuidado
Use System.Runtime.Remoting.RemotingConfiguration.Configure(string fileName, bool ensureSecurity) instead.
Cuidado
Use Configure(String,Boolean)
Lê o arquivo de configuração e configura a infraestrutura de comunicação remota.Reads the configuration file and configures the remoting infrastructure. Configure(String) é obsoleto.Configure(String) is obsolete. Use Configure(String, Boolean) em seu lugar.Please use Configure(String, Boolean) instead.
public:
static void Configure(System::String ^ filename);
public static void Configure (string filename);
[System.Obsolete("Use System.Runtime.Remoting.RemotingConfiguration.Configure(string fileName, bool ensureSecurity) instead.", false)]
public static void Configure (string filename);
[System.Obsolete("Use Configure(String,Boolean)")]
public static void Configure (string filename);
static member Configure : string -> unit
[<System.Obsolete("Use System.Runtime.Remoting.RemotingConfiguration.Configure(string fileName, bool ensureSecurity) instead.", false)>]
static member Configure : string -> unit
[<System.Obsolete("Use Configure(String,Boolean)")>]
static member Configure : string -> unit
Public Shared Sub Configure (filename As String)
Parâmetros
- filename
- String
O nome do arquivo de configuração de comunicação remota.The name of the remoting configuration file. Pode ser null.Can be null.
- Atributos
Exceções
Pelo menos um dos chamadores no topo da pilha de chamadas não tem permissão para configurar canais e tipos de comunicação remota.At least one of the callers higher in the callstack does not have permission to configure remoting types and channels.
Exemplos
// Configure the remoting structure.
RemotingConfiguration::Configure( "server.config" );
// Configure the remoting structure.
RemotingConfiguration.Configure("server.config");
' Configure the remoting structure.
RemotingConfiguration.Configure("server.config")
Comentários
Observação
Configure(String) é obsoleto.Configure(String) is obsolete. Use Configure(String, Boolean) em seu lugar.Please use Configure(String, Boolean) instead.
Passar null como o filename parâmetro causará a inicialização de comunicação remota sem exigir a existência de um arquivo de configuração.Passing null as the filename parameter will cause default remoting initialization without requiring the existence of a configuration file.
Para obter a sintaxe do arquivo de configuração, consulte esquema de configurações de comunicação remota.For configuration file syntax, see Remoting Settings Schema.
Observação
Os objetos Marshal-by-reference (MBRs) não residem na memória para sempre.Marshal-by-reference objects (MBRs) do not reside in memory forever. Em vez disso, a menos que o tipo substitua MarshalByRefObject.InitializeLifetimeService para controlar suas próprias políticas de tempo de vida, cada MBR tem um tempo de vida finito antes que o .NET Framework sistema de comunicação remota inicie o processo de excluí-lo e recuperar a memória.Instead, unless the type overrides MarshalByRefObject.InitializeLifetimeService to control its own lifetime policies, each MBR has a finite lifetime before the .NET Framework remoting system begins the process of deleting it and reclaiming the memory. Para obter mais informações, consulte leasings de tempo de vida.For more information, see Lifetime Leases.
Aplica-se a
Configure(String, Boolean)
Lê o arquivo de configuração e configura a infraestrutura de comunicação remota.Reads the configuration file and configures the remoting infrastructure.
public:
static void Configure(System::String ^ filename, bool ensureSecurity);
public static void Configure (string filename, bool ensureSecurity);
static member Configure : string * bool -> unit
Public Shared Sub Configure (filename As String, ensureSecurity As Boolean)
Parâmetros
- filename
- String
O nome do arquivo de configuração de comunicação remota.The name of the remoting configuration file. Pode ser null.Can be null.
- ensureSecurity
- Boolean
Se definido como true, será necessária segurança.If set to true security is required. Se definido como false, a segurança não será necessária, mas ainda poderá ser usada.If set to false, security is not required but still may be used.
Exceções
Pelo menos um dos chamadores no topo da pilha de chamadas não tem permissão para configurar canais e tipos de comunicação remota.At least one of the callers higher in the callstack does not have permission to configure remoting types and channels.
Comentários
Passar null como o filename parâmetro causará a inicialização de comunicação remota sem exigir a existência de um arquivo de configuração.Passing null as the filename parameter will cause default remoting initialization without requiring the existence of a configuration file. Para obter mais informações sobre comunicação remota e segurança, consulte segurança em comunicação remota.For more information about remoting and security see Security in Remoting.
Para obter a sintaxe do arquivo de configuração, consulte esquema de configurações de comunicação remota.For configuration file syntax, see Remoting Settings Schema.
Observação
Os objetos Marshal-by-reference (MBRs) não residem na memória para sempre.Marshal-by-reference objects (MBRs) do not reside in memory forever. Em vez disso, a menos que o tipo substitua MarshalByRefObject.InitializeLifetimeService para controlar suas próprias políticas de tempo de vida, cada MBR tem um tempo de vida finito antes que o .NET Framework sistema de comunicação remota inicie o processo de excluí-lo e recuperar a memória.Instead, unless the type overrides MarshalByRefObject.InitializeLifetimeService to control its own lifetime policies, each MBR has a finite lifetime before the .NET Framework remoting system begins the process of deleting it and reclaiming the memory. Para obter mais informações, consulte leasings de tempo de vida.For more information, see Lifetime Leases.