PdfDocument.LoadFromFileAsync メソッド

定義

オーバーロード

LoadFromFileAsync(IStorageFile)

非同期操作を出力します。 操作が完了すると、 PdfDocument オブジェクトが返されます。これは、ポータブル ドキュメント形式 (PDF) ドキュメントを表します。

LoadFromFileAsync(IStorageFile, String)

非同期操作を出力します。 操作が完了すると、 PdfDocument オブジェクトが返されます。これは、ポータブル ドキュメント形式 (PDF) ドキュメントを表します。 ポータブル ドキュメント形式 (PDF) ドキュメントがパスワードで保護されている場合は、このメソッドを使用します。

LoadFromFileAsync(IStorageFile)

非同期操作を出力します。 操作が完了すると、 PdfDocument オブジェクトが返されます。これは、ポータブル ドキュメント形式 (PDF) ドキュメントを表します。

public:
 static IAsyncOperation<PdfDocument ^> ^ LoadFromFileAsync(IStorageFile ^ file);
/// [Windows.Foundation.Metadata.Overload("LoadFromFileAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<PdfDocument> LoadFromFileAsync(IStorageFile const& file);
[Windows.Foundation.Metadata.Overload("LoadFromFileAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<PdfDocument> LoadFromFileAsync(IStorageFile file);
function loadFromFileAsync(file)
Public Shared Function LoadFromFileAsync (file As IStorageFile) As IAsyncOperation(Of PdfDocument)

パラメーター

file
IStorageFile

ポータブル ドキュメント形式 (PDF) ドキュメントを表す ファイル。

戻り値

非同期操作。

属性

こちらもご覧ください

適用対象

LoadFromFileAsync(IStorageFile, String)

非同期操作を出力します。 操作が完了すると、 PdfDocument オブジェクトが返されます。これは、ポータブル ドキュメント形式 (PDF) ドキュメントを表します。 ポータブル ドキュメント形式 (PDF) ドキュメントがパスワードで保護されている場合は、このメソッドを使用します。

public:
 static IAsyncOperation<PdfDocument ^> ^ LoadFromFileAsync(IStorageFile ^ file, Platform::String ^ password);
/// [Windows.Foundation.Metadata.Overload("LoadFromFileWithPasswordAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<PdfDocument> LoadFromFileAsync(IStorageFile const& file, winrt::hstring const& password);
[Windows.Foundation.Metadata.Overload("LoadFromFileWithPasswordAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<PdfDocument> LoadFromFileAsync(IStorageFile file, string password);
function loadFromFileAsync(file, password)
Public Shared Function LoadFromFileAsync (file As IStorageFile, password As String) As IAsyncOperation(Of PdfDocument)

パラメーター

file
IStorageFile

ポータブル ドキュメント形式 (PDF) ドキュメントを表す ファイル。

password
String

Platform::String

winrt::hstring

ポータブル ドキュメント形式 (PDF) ドキュメントを開くパスワード (必要な場合)。

戻り値

非同期操作。

属性

注釈

ポータブル ドキュメント形式 (PDF) ドキュメントにパスワードが必要ない場合、このメソッドはパスワードを無視します。

間違ったパスワードが指定されている場合、このメソッドは ERROR_WRONG_PASSWORD エラーを返します。

こちらもご覧ください

適用対象