Freigeben über


IVsProjectServerHost.StartServer(String, UInt32) Method

Definition

Creates a process for a hosted server.

public:
 int StartServer(System::String ^ bstrEnvironment, [Runtime::InteropServices::Out] System::UInt32 % pdwProcessId);
int StartServer(std::wstring const & bstrEnvironment, [Runtime::InteropServices::Out] unsigned int & pdwProcessId);
public int StartServer (string bstrEnvironment, out uint pdwProcessId);
abstract member StartServer : string * uint32 -> int
Public Function StartServer (bstrEnvironment As String, ByRef pdwProcessId As UInteger) As Integer

Parameters

bstrEnvironment
String

Environment in which to start the server. If not specified, the default environment is used.

pdwProcessId
UInt32

The ID of the new process.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

If the server is already running then this method has no effect.

The bstrEnvironment parameter contains a list of NULL-terminated strings terminated by a double NULL {\0\0}. Appropriate methods (such as using SysAllocStringLen) must be used when copying this BSTR.

COM Signature

From vsshell90.idl:

HRESULT StartServer(  
    [in, ptr] BSTR bstrEnvironment,   
    [out, retval] DWORD * pdwProcessId  
);  

Applies to