forked from aspnet/AspNetWebStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMultipartRemoteFileData.cs
More file actions
57 lines (49 loc) · 1.74 KB
/
Copy pathMultipartRemoteFileData.cs
File metadata and controls
57 lines (49 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// 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
{
/// <summary>
/// Represents a multipart file data for remote storage.
/// </summary>
public class MultipartRemoteFileData
{
/// <summary>
/// Initializes a new instance of the <see cref="MultipartRemoteFileData"/> class.
/// </summary>
/// <param name="headers">The headers of the multipart file data.</param>
/// <param name="location">The remote file's location.</param>
/// <param name="fileName">The remote file's name.</param>
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;
}
/// <summary>
/// Gets the remote file's name.
/// </summary>
public string FileName { get; private set; }
/// <summary>
/// Gets the headers of the multipart file data.
/// </summary>
public HttpContentHeaders Headers { get; private set; }
/// <summary>
/// Gets the remote file's location.
/// </summary>
public string Location { get; private set; }
}
}