RemotingConfiguration.Configure Method
Reads the configuration file and configures the remoting infrastructure.
[Visual Basic] Public Shared Sub Configure( _ ByVal filename As String _ ) [C#] public static void Configure( string filename ); [C++] public: static void Configure( String* filename ); [JScript] public static function Configure( filename : String );
Parameters
- filename
- The name of the remoting configuration file. Can be a null reference (Nothing in Visual Basic).
Exceptions
| Exception Type | Condition |
|---|---|
| SecurityException | At least one of the callers higher in the callstack does not have permission to configure Remoting types and channels. |
Remarks
Passing a null reference (Nothing in Visual Basic) as the filename parameter will cause default remoting initialization without requiring the existence of a configuration file.
For configuration file syntax, see Remoting Settings Schema.
Example
[Visual Basic] ' Configure the remoting structure. RemotingConfiguration.Configure("server.config") [C#] // Configure the remoting structure. RemotingConfiguration.Configure("server.config"); [C++] // Configure the remoting structure. RemotingConfiguration::Configure(S"server.config");
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
.NET Framework Security:
- SecurityPermission for configuration of the remoting infrastructure. Demand value: SecurityAction.Demand; Permission value: SecurityPermissionFlag.RemotingConfiguration
See Also
RemotingConfiguration Class | RemotingConfiguration Members | System.Runtime.Remoting Namespace | Remoting Settings Schema