IsolatedWindowsEnvironmentOptions.ShareHostFolderForUntrustedItems 方法

定义

已弃用。 设置 SharedFolderNameInEnvironmentSharedHostFolderPath ,以配置要共享的文件夹,以便与独立 Windows 环境共享不受信任的项目。

public:
 virtual void ShareHostFolderForUntrustedItems(Platform::String ^ SharedHostFolderPath, Platform::String ^ ShareFolderNameInEnvironment) = ShareHostFolderForUntrustedItems;
void ShareHostFolderForUntrustedItems(winrt::hstring const& SharedHostFolderPath, winrt::hstring const& ShareFolderNameInEnvironment);
/// [Windows.Foundation.Metadata.Deprecated("IsolatedWindowsEnvironmentOptions is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 327680, "Windows.Security.Isolation.IsolatedWindowsEnvironmentContract")]
void ShareHostFolderForUntrustedItems(winrt::hstring const& SharedHostFolderPath, winrt::hstring const& ShareFolderNameInEnvironment);
public void ShareHostFolderForUntrustedItems(string SharedHostFolderPath, string ShareFolderNameInEnvironment);
[Windows.Foundation.Metadata.Deprecated("IsolatedWindowsEnvironmentOptions is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 327680, "Windows.Security.Isolation.IsolatedWindowsEnvironmentContract")]
public void ShareHostFolderForUntrustedItems(string SharedHostFolderPath, string ShareFolderNameInEnvironment);
function shareHostFolderForUntrustedItems(SharedHostFolderPath, ShareFolderNameInEnvironment)
Public Sub ShareHostFolderForUntrustedItems (SharedHostFolderPath As String, ShareFolderNameInEnvironment As String)

参数

SharedHostFolderPath
String

Platform::String

winrt::hstring

共享主机文件夹的路径。

ShareFolderNameInEnvironment
String

Platform::String

winrt::hstring

独立 Windows 环境中的文件夹的名称。

属性

注解

警告

这是一个已弃用的 API。

适用于