51 references to Name
Microsoft.Net.Http.Headers (6)
CacheControlHeaderValue.cs (1)
571
var name = nameValue.
Name
;
MediaTypeHeaderValue.cs (3)
791
if (parameter.
Name
.Equals(WildcardString, StringComparison.OrdinalIgnoreCase))
798
if (parameter.
Name
.Equals(QualityString, StringComparison.OrdinalIgnoreCase))
805
var localParameter = NameValueHeaderValue.Find(_parameters, parameter.
Name
);
NameValueHeaderValue.cs (2)
298
destination.Append(values[i].
Name
.AsSpan());
446
if (value.
Name
.Equals(name, StringComparison.OrdinalIgnoreCase))
Microsoft.Net.Http.Headers.Tests (45)
ContentDispositionHeaderValueTest.cs (21)
79
Assert.Equal("name", contentDisposition.Parameters.First().
Name
.AsSpan());
96
Assert.Equal("NAME", contentDisposition.Parameters.First().
Name
.AsSpan());
101
Assert.Equal("NAME", contentDisposition.Parameters.First().
Name
.AsSpan());
116
Assert.Equal("FILENAME", contentDisposition.Parameters.First().
Name
.AsSpan());
121
Assert.Equal("FILENAME", contentDisposition.Parameters.First().
Name
.AsSpan());
135
Assert.Equal("filename", contentDisposition.Parameters.First().
Name
.AsSpan());
150
Assert.Equal("filename", contentDisposition.Parameters.First().
Name
.AsSpan());
166
Assert.Equal("FILENAME", contentDisposition.Parameters.First().
Name
.AsSpan());
173
Assert.Equal("FILENAME", contentDisposition.Parameters.First().
Name
.AsSpan());
188
Assert.Equal("FILENAME*", contentDisposition.Parameters.First().
Name
.AsSpan());
194
Assert.Equal("FILENAME*", contentDisposition.Parameters.First().
Name
.AsSpan());
209
Assert.Equal("filename*", contentDisposition.Parameters.First().
Name
.AsSpan());
272
Assert.Equal("FILENAME*", contentDisposition.Parameters.First().
Name
.AsSpan());
279
Assert.Equal("FILENAME*", contentDisposition.Parameters.First().
Name
.AsSpan());
313
Assert.Equal("Creation-DATE", contentDisposition.Parameters.First().
Name
.AsSpan());
321
Assert.Equal("Creation-DATE", contentDisposition.Parameters.First().
Name
.AsSpan());
339
Assert.Equal("read-DATE", contentDisposition.Parameters.First().
Name
.AsSpan());
357
Assert.Equal("SIZE", contentDisposition.Parameters.First().
Name
.AsSpan());
363
Assert.Equal("SIZE", contentDisposition.Parameters.First().
Name
.AsSpan());
378
Assert.Equal("SIZE", contentDisposition.Parameters.First().
Name
.AsSpan());
385
Assert.Equal("SIZE", contentDisposition.Parameters.First().
Name
.AsSpan());
MediaTypeHeaderValueTest.cs (13)
165
Assert.Same(pair0.
Name
.Value, pair1.
Name
.Value);
193
Assert.Same(pair0.
Name
.Value, pair1.
Name
.Value);
216
Assert.Same(pair2.
Name
.Value, pair1.
Name
.Value);
237
Assert.Equal("charset", mediaType.Parameters.First().
Name
.AsSpan());
254
Assert.Equal("CHARSET", mediaType.Parameters.First().
Name
.AsSpan());
259
Assert.Equal("CHARSET", mediaType.Parameters.First().
Name
.AsSpan());
272
Assert.Equal("q", mediaType.Parameters.First().
Name
.AsSpan());
289
Assert.Equal("q", mediaType.Parameters.First().
Name
.AsSpan());
295
Assert.Equal("q", mediaType.Parameters.First().
Name
.AsSpan());
309
Assert.Equal("Q", mediaType.Parameters.First().
Name
.AsSpan());
NameValueHeaderValueTest.cs (11)
32
Assert.Equal("text", nameValue.
Name
.AsSpan());
63
Assert.Same(pair0.
Name
.Value, pair1.
Name
.Value);
79
Assert.Same(pair0.
Name
.Value, pair1.
Name
.Value);
98
Assert.Same(pair0.
Name
.Value, pair1.
Name
.Value);
113
Assert.Same(pair0.
Name
.Value, pair1.
Name
.Value);
132
Assert.Same(pair0.
Name
.Value, pair1.
Name
.Value);