IVsWebProxy.PrepareWebProxy(String, UInt32, UInt32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Prepares the web proxy for a web call by attaching credentials to it.
public:
int PrepareWebProxy(System::String ^ strWebCallUrl, System::UInt32 oldProxyState, [Runtime::InteropServices::Out] System::UInt32 % newProxyState, int fOkToPrompt);
int PrepareWebProxy(std::wstring const & strWebCallUrl, unsigned int oldProxyState, [Runtime::InteropServices::Out] unsigned int & newProxyState, int fOkToPrompt);
public int PrepareWebProxy (string strWebCallUrl, uint oldProxyState, out uint newProxyState, int fOkToPrompt);
abstract member PrepareWebProxy : string * uint32 * uint32 * int -> int
Public Function PrepareWebProxy (strWebCallUrl As String, oldProxyState As UInteger, ByRef newProxyState As UInteger, fOkToPrompt As Integer) As Integer
Parameters
- strWebCallUrl
- String
[in] The URL for the web call.
- oldProxyState
- UInt32
[in] A __VsWebProxyState value specifying the current proxy state for the web call.
- newProxyState
- UInt32
[out] A __VsWebProxyState value specifying the new proxy state for the web call.
- fOkToPrompt
- Int32
[in] Prompt user for credentials if they are not available.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
This method must be accessed on the main thread.