ClientRemotingConfig.Write 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在启用了 SOAP 的 COM+ 应用程序中为客户端类型库创建客户端远程处理配置文件。
此 API 支持产品基础结构,不能在代码中直接使用。
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
参数
- DestinationDirectory
- String
在其中创建配置文件的文件夹。
- VRoot
- String
虚拟根的名称。
- BaseUrl
- String
包含虚拟根的基 URL。
- AssemblyName
- String
程序集的显示名称,其中包含与类型库对应的公共语言运行时 (CLR) 元数据。
- TypeName
- String
程序集的完全限定名称,其中包含对应于类型库的 CLR 元数据。
- ProgId
- String
类的编程标识符。
- Mode
- String
激活模式。
- Transport
- String
未使用。 指定 null 此参数。
返回
true 如果已成功创建客户端远程处理配置文件,则为否则 false。
注解
从客户端类型库(带有 .tlb 扩展)生成 COM 接口时,类调用Write静态Publish方法。 该 Publish 类在启用了 SOAP 的 COM+ 应用程序中发布 COM 接口。
Write 不需要直接调用。 而是调用 ProcessClientTlb 类的方法 Publish 。
将 BaseUrl 连接和 VRoot 参数值(如果需要),以形成客户端元素的 URL 属性值(如果需要)与路径分隔符。
该 AssemblyName 参数标识包含 CLR 元数据 Publish的 GenerateMetadata 程序集,该程序集使用类已为客户端类型库生成。