共用方式為


IBackgroundTransferContentPartFactory.CreateWithNameAndFileName 方法

定義

建立 BackgroundTransferContentPart 物件,識別檔案的內容類型和名稱。

public:
 BackgroundTransferContentPart ^ CreateWithNameAndFileName(Platform::String ^ name, Platform::String ^ fileName);
BackgroundTransferContentPart CreateWithNameAndFileName(winrt::hstring const& name, winrt::hstring const& fileName);
public BackgroundTransferContentPart CreateWithNameAndFileName(string name, string fileName);
function createWithNameAndFileName(name, fileName)
Public Function CreateWithNameAndFileName (name As String, fileName As String) As BackgroundTransferContentPart

參數

name
String

Platform::String

winrt::hstring

識別內容類型。

fileName
String

Platform::String

winrt::hstring

完整檔案名;這包括本機路徑。

傳回

resultant BackgroundTransferContentPart 物件。

適用於

另請參閱