1 implementation of Name
Microsoft.AspNetCore.Http (1)
FormFile.cs (1)
65
public string
Name
{ get; }
21 references to Name
Microsoft.AspNetCore.Http (2)
FormFileCollection.cs (2)
19
if (string.Equals(name, file.
Name
, StringComparison.OrdinalIgnoreCase))
35
if (string.Equals(name, file.
Name
, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Http.Extensions.Tests (9)
RequestDelegateGenerator\RequestDelegateCreationTests.Forms.cs (9)
114
Assert.Equal("file", fileArgument.
Name
);
152
Assert.Equal("file", fileArgument.
Name
);
190
Assert.Equal("file1", file1Argument.
Name
);
195
Assert.Equal("file2", file2Argument.
Name
);
268
Assert.Equal("my_file", fileArgument.
Name
);
305
Assert.Equal("file", fileArgument.
Name
);
415
Assert.Equal("file", fileArgument.
Name
);
462
Assert.Equal("file", fileArgument.
Name
);
507
Assert.Equal("file", fileArgument.
Name
);
Microsoft.AspNetCore.Http.Tests (2)
Features\FormFeatureTests.cs (2)
301
Assert.Equal("myfile1", file.
Name
);
386
Assert.Equal("myfile1", file.
Name
);
Microsoft.AspNetCore.Mvc.Core (4)
ModelBinding\Binders\FormFileModelBinder.cs (3)
153
if (file.
Name
.Equals(modelName, StringComparison.OrdinalIgnoreCase))
184
if (string.Equals(name, file.
Name
, StringComparison.OrdinalIgnoreCase))
199
if (string.Equals(name, file.
Name
, StringComparison.OrdinalIgnoreCase))
ModelBinding\FormFileValueProvider.cs (1)
56
fileNames.Add(file.
Name
);
Microsoft.AspNetCore.Mvc.Core.Test (2)
ModelBinding\Binders\FormFileModelBinderTest.cs (2)
355
Assert.Equal(expected, file.
Name
);
502
formFile.Setup(f => f.
Name
).Returns(modelName);
RazorPagesWebSite (2)
Pages\PropertyBinding\BindFormFile.cshtml.cs (2)
25
if (string.IsNullOrEmpty(Form3.
Name
) || Form3.Length == 0)
30
if (string.IsNullOrEmpty(Forms.Form1.
Name
) || Forms.Form1.Length == 0)