IComSoapPublisher.CreateVirtualRoot(String, String, String, String, String, String) 方法
定义
创建启用 SOAP 的 COM+ 应用程序虚拟根目录。Creates a SOAP-enabled COM+ application virtual root.
public:
void CreateVirtualRoot(System::String ^ Operation, System::String ^ FullUrl, [Runtime::InteropServices::Out] System::String ^ % BaseUrl, [Runtime::InteropServices::Out] System::String ^ % VirtualRoot, [Runtime::InteropServices::Out] System::String ^ % PhysicalPath, [Runtime::InteropServices::Out] System::String ^ % Error);
public void CreateVirtualRoot (string Operation, string FullUrl, out string BaseUrl, out string VirtualRoot, out string PhysicalPath, out string Error);
abstract member CreateVirtualRoot : string * string * string * string * string * string -> unit
Public Sub CreateVirtualRoot (Operation As String, FullUrl As String, ByRef BaseUrl As String, ByRef VirtualRoot As String, ByRef PhysicalPath As String, ByRef Error As String)
参数
- Operation
- String
要执行的操作。The operation to perform.
- FullUrl
- String
虚拟根目录的完整 URL 地址。The complete URL address for the virtual root.
- BaseUrl
- String
此方法返回时,此参数包含基 URL 地址。When this method returns, this parameter contains the base URL address.
- VirtualRoot
- String
此方法返回时,此参数包含虚拟根目录的名称。When this method returns, this parameter contains the name of the virtual root.
- PhysicalPath
- String
此方法返回时,此参数包含虚拟根目录的文件路径。When this method returns, this parameter contains the file path for the virtual root.
- Error
- String
此方法返回时,此参数包含错误信息(如果遇到了问题)。When this method returns, this parameter contains an error message if a problem was encountered.
例外
调用链中的调用方无权访问非托管代码。A caller in the call chain does not have permission to access unmanaged code.
-或--or-
调用方没有访问域名系统 (DNS) 信息的权限。The caller does not have permission to access Domain Name System (DNS) information.
FullUrl 为 null。FullUrl is null.
解析本地主机名时遇到错误。An error is encountered when resolving the local host name.
FullUrl 为空。FullUrl is empty.
- 或 --or-
FullUrl 中指定的方案无效。The scheme specified in FullUrl is invalid.
-或--or-
FullUrl 包含两个以上的连续斜杠。FullUrl contains more than two consecutive slashes.
-或--or-
FullUrl 中指定的密码无效。The password specified in FullUrl is invalid.
-或--or-
FullUrl 中指定的主机名无效。The host name specified in FullUrl is invalid.
-或--or-
FullUrl 中指定的文件名无效。The file name specified in FullUrl is invalid.
注解
建议 CreateVirtualRootEx 使用而不是 CreateVirtualRoot 。It is recommended that CreateVirtualRootEx be used instead of CreateVirtualRoot.