RemotingConfiguration.Configure Methode
Definition
Überlädt
Configure(String) |
Veraltet.
Veraltet.
Liest die Konfigurationsdatei und konfiguriert die Remotinginfrastruktur.Reads the configuration file and configures the remoting infrastructure. Configure(String) ist veraltet.Configure(String) is obsolete. Verwenden Sie stattdessen Configure(String, Boolean).Please use Configure(String, Boolean) instead. |
Configure(String, Boolean) |
Liest die Konfigurationsdatei und konfiguriert die Remotinginfrastruktur.Reads the configuration file and configures the remoting infrastructure. |
Configure(String)
Achtung
Use System.Runtime.Remoting.RemotingConfiguration.Configure(string fileName, bool ensureSecurity) instead.
Achtung
Use Configure(String,Boolean)
Liest die Konfigurationsdatei und konfiguriert die Remotinginfrastruktur.Reads the configuration file and configures the remoting infrastructure. Configure(String) ist veraltet.Configure(String) is obsolete. Verwenden Sie stattdessen Configure(String, Boolean).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)
Parameter
- filename
- String
Der Name der Remotekonfigurationsdatei.The name of the remoting configuration file. Kann null
sein.Can be null
.
- Attribute
Ausnahmen
Mindestens einer der Aufrufer an höherer Position im Aufrufstapel verfügt nicht über die Berechtigung zum Konfigurieren von Remotetypen und Channels.At least one of the callers higher in the callstack does not have permission to configure remoting types and channels.
Beispiele
// Configure the remoting structure.
RemotingConfiguration::Configure( "server.config" );
// Configure the remoting structure.
RemotingConfiguration.Configure("server.config");
' Configure the remoting structure.
RemotingConfiguration.Configure("server.config")
Hinweise
Hinweis
Configure(String) ist veraltet.Configure(String) is obsolete. Verwenden Sie stattdessen Configure(String, Boolean).Please use Configure(String, Boolean) instead.
Wenn Sie als-Parameter übergeben, null
filename
wird die standardmäßige Remoting-Initialisierung verwendet, ohne dass eine Konfigurationsdatei vorhanden sein müssen.Passing null
as the filename
parameter will cause default remoting initialization without requiring the existence of a configuration file.
Die Syntax für die Konfigurationsdatei finden Sie unter Remoting Settings Schema.For configuration file syntax, see Remoting Settings Schema.
Hinweis
Marshal-by-Reference-Objekte (MBRs) befinden sich nicht immer im Arbeitsspeicher.Marshal-by-reference objects (MBRs) do not reside in memory forever. Es sei denn, der Typ überschreibt, MarshalByRefObject.InitializeLifetimeService um seine eigenen Lebensdauer Richtlinien zu steuern, hat jeder MBR eine endliche Lebensdauer, bevor das .NET Framework Remoting-System den Löschvorgang für den Prozess startet und den Speicher freigibt.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. Weitere Informationen finden Sie unter Lebensdauer-Leases.For more information, see Lifetime Leases.
Gilt für:
Configure(String, Boolean)
Liest die Konfigurationsdatei und konfiguriert die Remotinginfrastruktur.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)
Parameter
- filename
- String
Der Name der Remotekonfigurationsdatei.The name of the remoting configuration file. Kann null
sein.Can be null
.
- ensureSecurity
- Boolean
Beim Wert true
ist Sicherheit erforderlich.If set to true
security is required. Beim Wert false
ist keine Sicherheit erforderlich, kann aber dennoch verwendet werden.If set to false
, security is not required but still may be used.
Ausnahmen
Mindestens einer der Aufrufer an höherer Position im Aufrufstapel verfügt nicht über die Berechtigung zum Konfigurieren von Remotetypen und Channels.At least one of the callers higher in the callstack does not have permission to configure remoting types and channels.
Hinweise
Wenn Sie als-Parameter übergeben, null
filename
wird die standardmäßige Remoting-Initialisierung verwendet, ohne dass eine Konfigurationsdatei vorhanden sein müssen.Passing null
as the filename
parameter will cause default remoting initialization without requiring the existence of a configuration file. Weitere Informationen zu Remoting und Sicherheit finden Sie unter Sicherheit bei Remoting.For more information about remoting and security see Security in Remoting.
Die Syntax für die Konfigurationsdatei finden Sie unter Remoting Settings Schema.For configuration file syntax, see Remoting Settings Schema.
Hinweis
Marshal-by-Reference-Objekte (MBRs) befinden sich nicht immer im Arbeitsspeicher.Marshal-by-reference objects (MBRs) do not reside in memory forever. Es sei denn, der Typ überschreibt, MarshalByRefObject.InitializeLifetimeService um seine eigenen Lebensdauer Richtlinien zu steuern, hat jeder MBR eine endliche Lebensdauer, bevor das .NET Framework Remoting-System den Löschvorgang für den Prozess startet und den Speicher freigibt.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. Weitere Informationen finden Sie unter Lebensdauer-Leases.For more information, see Lifetime Leases.