Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ClientRemotingConfig.Write Method

This method supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Creates a client remoting configuration file for a client type library in a SOAP-enabled COM+ application.

Namespace: System.EnterpriseServices.Internal
Assembly: System.EnterpriseServices (in system.enterpriseservices.dll)

public static bool Write (
	string DestinationDirectory,
	string VRoot,
	string BaseUrl,
	string AssemblyName,
	string TypeName,
	string ProgId,
	string Mode,
	string Transport
)
public static boolean Write (
	String DestinationDirectory, 
	String VRoot, 
	String BaseUrl, 
	String AssemblyName, 
	String TypeName, 
	String ProgId, 
	String Mode, 
	String Transport
)
public static function Write (
	DestinationDirectory : String, 
	VRoot : String, 
	BaseUrl : String, 
	AssemblyName : String, 
	TypeName : String, 
	ProgId : String, 
	Mode : String, 
	Transport : String
) : boolean

Parameters

DestinationDirectory

The folder in which to create the configuration file.

VRoot

The name of the virtual root.

BaseUrl

The base URL that contains the virtual root.

AssemblyName

The display name of the assembly that contains common language runtime (CLR) metadata corresponding to the type library.

TypeName

The fully qualified name of the assembly that contains CLR metadata corresponding to the type library.

ProgId

The programmatic identifier of the class.

Mode

The activation mode.

Transport

Not used. Specify a null reference (Nothing in Visual Basic) for this parameter.

Return Value

true 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 .

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.