Windows 市集應用程式的網路隔離Network Isolation for Windows Store Apps

System.NetSystem.Net.HttpSystem.Net.Http.Headers 命名空間中的類別可以用來開發 Windows 市集應用程式或傳統型應用程式。Classes in the System.Net, System.Net.Http, and System.Net.Http.Headers namespaces can be used to develop Windows Store apps or desktop apps. 在 Windows 市集應用程式中使用時,這些命名空間中的類別受到網路隔離的影響,而網路隔離是 Windows 8Windows 8 所使用應用程式安全性模型的一部分。When used in a Windows Store app, classes in these namespaces are affected by network isolation, part of the application security model used by the Windows 8Windows 8. 必須在 Windows 市集應用程式的應用程式資訊清單中啟用適當的網路功能,讓系統允許網路存取。The appropriate network capabilities must be enabled in the app manifest for a Windows Store app for the system to allow network access.

網路隔離的檢查清單Checklist for Network Isolation

使用此檢查清單,確定已設定 Windows 市集應用程式的網路隔離。Use this checklist to be sure that network isolation is configured for your Windows Store app.

  1. 決定應用程式所需的網路存取要求方向。Determine the direction of network access requests needed by the app. 這可以是輸出用戶端起始的要求或輸入未經要求的要求,或是這兩種網路要求類型的組合。This can be either outbound client-initiated requests or inbound unsolicited requests or it could be a combination of both of these network request types.

  2. 判斷該應用程式將與其通訊的網路資源類型。Determine the type of network resources that the app will communicate with. 應用程式可能需要與家用或工作場所網路上受信任的資源進行通訊。An app may need to communicate with trusted resources on a Home or Work network. 應用程式可能需要與網際網路上的資源進行通訊。An app might need to communicate with resources on the Internet. 應用程式可能需要存取這兩種類型的網路資源。An app might need access to both types of network resources.

  3. 在應用程式資訊清單中設定最低必要網路隔離功能。Configure the minimum-required networking isolation capabilities in the app manifest.

  4. 部署和執行應用程式,以使用針對疑難排解所提供的網路隔離工具對其進行測試。Deploy and run your app to test it using the network isolation tools provided for troubleshooting.

如需如何設定用於針對網路隔離進行疑難排解之網路功能和隔離工具的詳細資訊,請參閱 Windows 8.x 市集Windows 8.x Store 開發人員文件中的如何設定網路隔離功能For more detailed information on how to configure network capabilities and isolation tools used for troubleshooting network isolation, see How to configure network isolation capabilities in the Windows 8.x 市集Windows 8.x Store developer documentation.

另請參閱See also