設定透過 Proxy 與目的地通訊時要使用的 Proxy 設定類型。
語法
MI_INLINE MI_Result MI_DestinationOptions_SetProxyType(
[in, out] MI_DestinationOptions *options,
const MI_Char *proxyType
);
參數
[in, out] options
從MI_Application_NewDestinationOptions函式傳回之MI_DestinationOptions物件的指標。
proxyType
Null 終止的字串,表示要使用的 Proxy 機制。 可能的值包括這些常數。
MI_DESTINATIONOPTIONS_PROXY_TYPE_IE (“IE”)
預設的 IE 設定。
MI_DESTINATIONOPTIONS_PROXY_TYPE_WINHTTP (“WinHTTP”)
WinHTTP 設定。
MI_DESTINATIONOPTIONS_PROXY_TYPE_AUTO (“Auto”)
([預設] 設定) 提供者會選取最佳選項。
MI_DESTINATIONOPTIONS_PROXY_TYPE_NONE (“None”)
停用 Proxy 使用方式。
傳回值
無
備註
並非所有通訊協議和傳輸都支援 Proxy 組態。 此設定的預設值會根據選取的通訊協議和傳輸而有所不同。
規格需求
| 需求 | 值 |
|---|---|
| 最低支援的用戶端 | Windows 8 |
| 最低支援的伺服器 | Windows Server 2012 |
| 目標平台 | Windows |
| 標頭 | mi.h |
| 可轉散發套件 | windows Server 2008 R2 SP1、Windows 7 SP1 和 Windows Server 2008 SP2 上的 Windows Management Framework 3.0 |