IsolatedWindowsEnvironment.ShareFileAsync 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.
Overloads
ShareFileAsync(String, IsolatedWindowsEnvironmentShareFileRequestOptions) |
Deprecated. Share host file with Isolated Windows Environment. |
ShareFileAsync(String, IsolatedWindowsEnvironmentShareFileRequestOptions, IsolatedWindowsEnvironmentTelemetryParameters) |
Deprecated. Share host file with Isolated Windows Environment with telemetry correlation. |
ShareFileAsync(String, IsolatedWindowsEnvironmentShareFileRequestOptions)
Deprecated. Share host file with Isolated Windows Environment.
public:
virtual IAsyncOperation<IsolatedWindowsEnvironmentShareFileResult ^> ^ ShareFileAsync(Platform::String ^ filePath, IsolatedWindowsEnvironmentShareFileRequestOptions ^ options) = ShareFileAsync;
/// [Windows.Foundation.Metadata.Overload("ShareFileAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IsolatedWindowsEnvironmentShareFileResult> ShareFileAsync(winrt::hstring const& filePath, IsolatedWindowsEnvironmentShareFileRequestOptions const& options);
/// [Windows.Foundation.Metadata.Overload("ShareFileAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("IsolatedWindowsEnvironment is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 327680, "Windows.Security.Isolation.IsolatedWindowsEnvironmentContract")]
IAsyncOperation<IsolatedWindowsEnvironmentShareFileResult> ShareFileAsync(winrt::hstring const& filePath, IsolatedWindowsEnvironmentShareFileRequestOptions const& options);
[Windows.Foundation.Metadata.Overload("ShareFileAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IsolatedWindowsEnvironmentShareFileResult> ShareFileAsync(string filePath, IsolatedWindowsEnvironmentShareFileRequestOptions options);
[Windows.Foundation.Metadata.Overload("ShareFileAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("IsolatedWindowsEnvironment 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 IAsyncOperation<IsolatedWindowsEnvironmentShareFileResult> ShareFileAsync(string filePath, IsolatedWindowsEnvironmentShareFileRequestOptions options);
function shareFileAsync(filePath, options)
Public Function ShareFileAsync (filePath As String, options As IsolatedWindowsEnvironmentShareFileRequestOptions) As IAsyncOperation(Of IsolatedWindowsEnvironmentShareFileResult)
Parameters
- filePath
-
String
Platform::String
winrt::hstring
String of host file path.
Returns
IsolatedWindowsEnvironmentShareFileResult- Attributes
Windows requirements
Device family |
Windows 10, version 2104 (introduced in 10.0.20348.0)
|
API contract |
Windows.Security.Isolation.IsolatedWindowsEnvironmentContract (introduced in v3.0)
|
Remarks
Warning
This is a deprecated API.
The shared file shall appear in a folder with a randomly generated file path in the Isolated Windows Environment that will be provided in the IsolatedWindowsEnvironmentShareFileResult. Any data written to this folder will be copied back to the host. It is recommended to set the AllowWrite flag to false in IsolatedWindowsEnvironmentShareFileRequestOptions to prevent this.
Applies to
ShareFileAsync(String, IsolatedWindowsEnvironmentShareFileRequestOptions, IsolatedWindowsEnvironmentTelemetryParameters)
Deprecated. Share host file with Isolated Windows Environment with telemetry correlation.
public:
virtual IAsyncOperation<IsolatedWindowsEnvironmentShareFileResult ^> ^ ShareFileAsync(Platform::String ^ filePath, IsolatedWindowsEnvironmentShareFileRequestOptions ^ options, IsolatedWindowsEnvironmentTelemetryParameters ^ telemetryParameters) = ShareFileAsync;
/// [Windows.Foundation.Metadata.Overload("ShareFileWithTelemetryAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IsolatedWindowsEnvironmentShareFileResult> ShareFileAsync(winrt::hstring const& filePath, IsolatedWindowsEnvironmentShareFileRequestOptions const& options, IsolatedWindowsEnvironmentTelemetryParameters const& telemetryParameters);
/// [Windows.Foundation.Metadata.Overload("ShareFileWithTelemetryAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("IsolatedWindowsEnvironment is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 327680, "Windows.Security.Isolation.IsolatedWindowsEnvironmentContract")]
IAsyncOperation<IsolatedWindowsEnvironmentShareFileResult> ShareFileAsync(winrt::hstring const& filePath, IsolatedWindowsEnvironmentShareFileRequestOptions const& options, IsolatedWindowsEnvironmentTelemetryParameters const& telemetryParameters);
[Windows.Foundation.Metadata.Overload("ShareFileWithTelemetryAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IsolatedWindowsEnvironmentShareFileResult> ShareFileAsync(string filePath, IsolatedWindowsEnvironmentShareFileRequestOptions options, IsolatedWindowsEnvironmentTelemetryParameters telemetryParameters);
[Windows.Foundation.Metadata.Overload("ShareFileWithTelemetryAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("IsolatedWindowsEnvironment 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 IAsyncOperation<IsolatedWindowsEnvironmentShareFileResult> ShareFileAsync(string filePath, IsolatedWindowsEnvironmentShareFileRequestOptions options, IsolatedWindowsEnvironmentTelemetryParameters telemetryParameters);
function shareFileAsync(filePath, options, telemetryParameters)
Public Function ShareFileAsync (filePath As String, options As IsolatedWindowsEnvironmentShareFileRequestOptions, telemetryParameters As IsolatedWindowsEnvironmentTelemetryParameters) As IAsyncOperation(Of IsolatedWindowsEnvironmentShareFileResult)
Parameters
- filePath
-
String
Platform::String
winrt::hstring
String of host file path.
- telemetryParameters
- IsolatedWindowsEnvironmentTelemetryParameters
Telemetry parameters defined by IsolatedWindowsEnvironmentTelemetryParameters
Returns
IsolatedWindowsEnvironmentShareFileResult- Attributes
Windows requirements
Device family |
Windows 10, version 2104 (introduced in 10.0.20348.0)
|
API contract |
Windows.Security.Isolation.IsolatedWindowsEnvironmentContract (introduced in v3.0)
|
Remarks
Warning
This is a deprecated API.
The shared file shall appear in a folder with a randomly generated file path in the Isolated Windows Environment that will be provided in the IsolatedWindowsEnvironmentShareFileResult. Any data written to this folder will be copied back to the host. It is recommended to set the AllowWrite flag to false in isolatedwindowsenvironmentsharefilerequestoptions to prevent this.