Inheritance: PowerStudio.DebugEngine.DebugPort
 /// <summary>
 /// Gets a port from a port supplier.
 /// </summary>
 /// <param name="guidPort">Globally unique identifier (GUID) of the port.</param>
 /// <param name="ppPort">Returns an IDebugPort2 object that represents the port.</param>
 /// <returns>
 /// If successful, returns S_OK; otherwise, returns an error code. Returns E_PORTSUPPLIER_NO_PORT if no port exists with the given identifier.
 /// </returns>
 public override int GetPort(ref Guid guidPort, out Microsoft.VisualStudio.Debugger.Interop.IDebugPort2 ppPort)
 {
     Logger.Debug(string.Empty);
     guidPort = new Guid( PsConstants.PortGuid );
     ppPort = new PowerShellDebugPort();
     return VSConstants.S_OK;
 }
示例#2
0
 /// <summary>
 /// Gets a port from a port supplier.
 /// </summary>
 /// <param name="guidPort">Globally unique identifier (GUID) of the port.</param>
 /// <param name="ppPort">Returns an IDebugPort2 object that represents the port.</param>
 /// <returns>
 /// If successful, returns S_OK; otherwise, returns an error code. Returns E_PORTSUPPLIER_NO_PORT if no port exists with the given identifier.
 /// </returns>
 public override int GetPort(ref Guid guidPort, out Microsoft.VisualStudio.Debugger.Interop.IDebugPort2 ppPort)
 {
     Logger.Debug(string.Empty);
     guidPort = new Guid(PsConstants.PortGuid);
     ppPort   = new PowerShellDebugPort();
     return(VSConstants.S_OK);
 }