Muokkaa

Jaa


ClientRemotingConfig.Write Method

Definition

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

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 static bool Write(System::String ^ DestinationDirectory, System::String ^ VRoot, System::String ^ BaseUrl, System::String ^ AssemblyName, System::String ^ TypeName, System::String ^ ProgId, System::String ^ Mode, System::String ^ Transport);
public static bool Write (string DestinationDirectory, string VRoot, string BaseUrl, string AssemblyName, string TypeName, string ProgId, string Mode, string Transport);
static member Write : string * string * string * string * string * string * string * string -> bool
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

Parameters

DestinationDirectory
String

The folder in which to create the configuration file.

VRoot
String

The name of the virtual root.

BaseUrl
String

The base URL that contains the virtual root.

AssemblyName
String

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

TypeName
String

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

ProgId
String

The programmatic identifier of the class.

Mode
String

The activation mode.

Transport
String

Not used. Specify null for this parameter.

Returns

true if the client remoting configuration file was successfully created; otherwise false.

Remarks

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.

Applies to