ClientRemotingConfig.Write Method
Creates a client remoting configuration file for a client type library in a SOAP-enabled COM+ application.
Assembly: System.EnterpriseServices (in System.EnterpriseServices.dll)
'Declaration Public Shared Function Write ( _ DestinationDirectory As String, _ VRoot As String, _ BaseUrl As String, _ AssemblyName As String, _ TypeName As String, _ ProgId As String, _ Mode As String, _ Transport As String _ ) As Boolean 'Usage Dim DestinationDirectory As String Dim VRoot As String Dim BaseUrl As String Dim AssemblyName As String Dim TypeName As String Dim ProgId As String Dim Mode As String Dim Transport As String Dim returnValue As Boolean returnValue = ClientRemotingConfig.Write(DestinationDirectory, _ VRoot, BaseUrl, AssemblyName, TypeName, _ ProgId, Mode, Transport)
Parameters
- DestinationDirectory
- Type: System.String
The folder in which to create the configuration file.
- VRoot
- Type: System.String
The name of the virtual root.
- BaseUrl
- Type: System.String
The base URL that contains the virtual root.
- AssemblyName
- Type: System.String
The display name of the assembly that contains common language runtime (CLR) metadata corresponding to the type library.
- TypeName
- Type: System.String
The fully qualified name of the assembly that contains CLR metadata corresponding to the type library.
- ProgId
- Type: System.String
The programmatic identifier of the class.
- Mode
- Type: System.String
The activation mode.
- Transport
- Type: System.String
Not used. Specify Nothing for this parameter.
Return Value
Type: System.Booleantrue if the client remoting configuration file was successfully created; otherwise false.
The static Write method is called by the Publish class while generating a COM interface from a client type library (with a .tlb extension). The Publish class publishes COM interfaces in a SOAP-enabled COM+ application.
Write does not need to be called directly. Instead, call the ProcessClientTlb method of the Publish class.
The BaseUrl and VRoot parameter values are concatenated (with a path separator, if needed) to form the client element's URL attribute value.
The AssemblyName parameter identifies an assembly containing CLR metadata that Publish, using the GenerateMetadata class, has already generated for the client type library.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.