Compartir a través de


IsolatedWindowsEnvironment.ShareFileAsync Método

Definición

Sobrecargas

ShareFileAsync(String, IsolatedWindowsEnvironmentShareFileRequestOptions)

Desusado. Comparta el archivo de host con el entorno aislado de Windows.

ShareFileAsync(String, IsolatedWindowsEnvironmentShareFileRequestOptions, IsolatedWindowsEnvironmentTelemetryParameters)

Desusado. Comparta el archivo de host con el entorno aislado de Windows con correlación de telemetría.

ShareFileAsync(String, IsolatedWindowsEnvironmentShareFileRequestOptions)

Desusado. Comparta el archivo de host con el entorno aislado de Windows.

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)

Parámetros

filePath
String

Platform::String

winrt::hstring

Cadena de ruta de acceso del archivo host.

Devoluciones

IsolatedWindowsEnvironmentShareFileResult

Atributos

Requisitos de Windows

Familia de dispositivos
Windows 10, version 2104 (se introdujo en la versión 10.0.20348.0)
API contract
Windows.Security.Isolation.IsolatedWindowsEnvironmentContract (se introdujo en la versión v3.0)

Comentarios

Advertencia

Se trata de una API en desuso.

El archivo compartido aparecerá en una carpeta con una ruta de acceso de archivo generada aleatoriamente en el entorno de Windows aislado que se proporcionará en IsolatedWindowsEnvironmentShareFileResult. Los datos escritos en esta carpeta se volverán a copiar en el host. Se recomienda establecer la marca AllowWrite en false en IsolatedWindowsEnvironmentShareFileRequestOptions para evitarlo.

Se aplica a

ShareFileAsync(String, IsolatedWindowsEnvironmentShareFileRequestOptions, IsolatedWindowsEnvironmentTelemetryParameters)

Desusado. Comparta el archivo de host con el entorno aislado de Windows con correlación de telemetría.

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)

Parámetros

filePath
String

Platform::String

winrt::hstring

Cadena de ruta de acceso del archivo host.

telemetryParameters
IsolatedWindowsEnvironmentTelemetryParameters

Parámetros de telemetría definidos por IsolatedWindowsEnvironmentTelemetryParameters

Devoluciones

IsolatedWindowsEnvironmentShareFileResult

Atributos

Requisitos de Windows

Familia de dispositivos
Windows 10, version 2104 (se introdujo en la versión 10.0.20348.0)
API contract
Windows.Security.Isolation.IsolatedWindowsEnvironmentContract (se introdujo en la versión v3.0)

Comentarios

Advertencia

Se trata de una API en desuso.

El archivo compartido aparecerá en una carpeta con una ruta de acceso de archivo generada aleatoriamente en el entorno de Windows aislado que se proporcionará en IsolatedWindowsEnvironmentShareFileResult. Los datos escritos en esta carpeta se volverán a copiar en el host. Se recomienda establecer la marca AllowWrite en false en isolatedwindowsenvironmentsharefilerequestoptions para evitar esto.

Se aplica a