Share via


ActionEntityFactory.CreateRemoteFileEntity Method

Definition

Creates a new instance of RemoteFileActionEntity which enables actions to operate on files hosted by cloud storage providers.

public:
 virtual RemoteFileActionEntity ^ CreateRemoteFileEntity(Platform::String ^ sourceId, RemoteFileKind fileKind, Uri ^ sourceUri, Platform::String ^ fileId, Platform::String ^ contentType, Platform::String ^ driveId, Platform::String ^ accountId, Platform::String ^ extension) = CreateRemoteFileEntity;
RemoteFileActionEntity CreateRemoteFileEntity(winrt::hstring const& sourceId, RemoteFileKind const& fileKind, Uri const& sourceUri, winrt::hstring const& fileId, winrt::hstring const& contentType, winrt::hstring const& driveId, winrt::hstring const& accountId, winrt::hstring const& extension);
public RemoteFileActionEntity CreateRemoteFileEntity(string sourceId, RemoteFileKind fileKind, System.Uri sourceUri, string fileId, string contentType, string driveId, string accountId, string extension);
function createRemoteFileEntity(sourceId, fileKind, sourceUri, fileId, contentType, driveId, accountId, extension)
Public Function CreateRemoteFileEntity (sourceId As String, fileKind As RemoteFileKind, sourceUri As Uri, fileId As String, contentType As String, driveId As String, accountId As String, extension As String) As RemoteFileActionEntity

Parameters

sourceId
String

Platform::String

winrt::hstring

The identifier of the cloud storage provider that hosts the remote file.

fileKind
RemoteFileKind

A member of the RemoteFileKind enumeration specifying the remote file kind.

sourceUri
Uri Uri

The URI of the remote file. Optional. Some cloud storage providers may use the sourfileId parameter instead.

fileId
String

Platform::String

winrt::hstring

The identifier of the remote file. Optional. Some cloud storage providers may use the sourceUri parameter instead.

contentType
String

Platform::String

winrt::hstring

The MIME type of the remote file.

driveId
String

Platform::String

winrt::hstring

The identifier for the remote drive associated with the remote file.

accountId
String

Platform::String

winrt::hstring

The identifier of the cloud service account associated with the remote file. Optional.

extension
String

Platform::String

winrt::hstring

The extension of the remote file.

Returns

A new RemoteFileActionEntity.

Remarks

This method has parameters that represent values that are commonly used across different cloud providers. The implementation and behavior of these parameters will vary between providers. App action provider developers should consult the documentation for each supported cloud storage provider for usage information for these parameters.

Applies to