IBackgroundTransferContentPartFactory.CreateWithNameAndFileName method

Applies to Windows and Windows Phone

Creates a BackgroundTransferContentPart object that identifies the content type and name of the file.

Syntax


BackgroundTransferContentPart CreateWithNameAndFileName(
  string name, 
  string fileName
)

Parameters

name

Type: System.String [.NET] | Platform::String [C++]

Identifies the content type.

fileName

Type: System.String [.NET] | Platform::String [C++]

The fully qualified file name; this includes the local path.

Return value

Type: BackgroundTransferContentPart

The resultant BackgroundTransferContentPart object.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Networking.BackgroundTransfer
Windows::Networking::BackgroundTransfer [C++]

Metadata

Windows.winmd

See also

CreateDownload(Uri, IStorageFile, IStorageFile)
CreateUploadAsync
IBackgroundTransferContentPartFactory

 

 

Show:
© 2014 Microsoft