// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Net.Http.Headers;
using System.Web.Http;
namespace System.Net.Http
{
///
/// Represents a multipart file data for remote storage.
///
public class MultipartRemoteFileData
{
///
/// Initializes a new instance of the class.
///
/// The headers of the multipart file data.
/// The remote file's location.
/// The remote file's name.
public MultipartRemoteFileData(HttpContentHeaders headers, string location, string fileName)
{
if (headers == null)
{
throw Error.ArgumentNull("headers");
}
if (location == null)
{
throw Error.ArgumentNull("location");
}
if (fileName == null)
{
throw Error.ArgumentNull("fileName");
}
FileName = fileName;
Headers = headers;
Location = location;
}
///
/// Gets the remote file's name.
///
public string FileName { get; private set; }
///
/// Gets the headers of the multipart file data.
///
public HttpContentHeaders Headers { get; private set; }
///
/// Gets the remote file's location.
///
public string Location { get; private set; }
}
}