206 references to DefaultValue
dotnet-svcutil-lib (35)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryReaderQuotas.cs (5)
88
[
DefaultValue
(DefaultMaxStringContentLength)]
106
[
DefaultValue
(DefaultMaxArrayLength)]
124
[
DefaultValue
(DefaultMaxBytesPerRead)]
143
[
DefaultValue
(DefaultMaxDepth)]
162
[
DefaultValue
(DefaultMaxNameTableCharCount)]
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncodingBindingElement.cs (3)
97
[
DefaultValue
(EncoderDefaults.MaxReadPoolSize)]
115
[
DefaultValue
(EncoderDefaults.MaxWritePoolSize)]
147
[
DefaultValue
(BinaryEncoderDefaults.MaxSessionSize)]
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionOrientedTransportBindingElement.cs (2)
45
[
DefaultValue
(ConnectionOrientedTransportDefaults.ConnectionBufferSize)]
93
[
DefaultValue
(TransportDefaults.MaxBufferSize)]
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpTransportBindingElement.cs (2)
205
[
DefaultValue
(TransportDefaults.MaxBufferSize)]
233
[
DefaultValue
(HttpTransportDefaults.DefaultMaxPendingAccepts)]
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MtomMessageEncodingBindingElement.cs (3)
63
[
DefaultValue
(EncoderDefaults.MaxReadPoolSize)]
80
[
DefaultValue
(EncoderDefaults.MaxWritePoolSize)]
105
[
DefaultValue
(MtomEncoderDefaults.MaxBufferSize)]
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\OneWayBindingElement.cs (1)
35
[
DefaultValue
(OneWayDefaults.MaxAcceptedChannels)]
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ReliableSessionBindingElement.cs (3)
109
[
DefaultValue
(ReliableSessionDefaults.MaxPendingChannels)]
125
[
DefaultValue
(ReliableSessionDefaults.MaxRetryCount)]
140
[
DefaultValue
(ReliableSessionDefaults.MaxTransferWindowSize)]
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TextMessageEncodingBindingElement.cs (2)
53
[
DefaultValue
(EncoderDefaults.MaxReadPoolSize)]
71
[
DefaultValue
(EncoderDefaults.MaxWritePoolSize)]
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\UdpRetransmissionSettings.cs (2)
84
[
DefaultValue
(UdpConstants.Defaults.MaxUnicastRetransmitCount)]
102
[
DefaultValue
(UdpConstants.Defaults.MaxMulticastRetransmitCount)]
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\UdpTransportBindingElement.cs (3)
52
[
DefaultValue
(UdpConstants.Defaults.DuplicateMessageHistoryLength)]
114
[
DefaultValue
(UdpConstants.Defaults.SocketReceiveBufferSize)]
130
[
DefaultValue
(UdpConstants.Defaults.TimeToLive)]
FrameworkFork\System.ServiceModel\System\ServiceModel\HttpBindingBase.cs (1)
64
[
DefaultValue
(TransportDefaults.MaxBufferSize)]
FrameworkFork\System.ServiceModel\System\ServiceModel\NetNamedPipeBinding.cs (1)
74
[
DefaultValue
(TransportDefaults.MaxBufferSize)]
FrameworkFork\System.ServiceModel\System\ServiceModel\NetTcpBinding.cs (1)
78
[
DefaultValue
(TransportDefaults.MaxBufferSize)]
FrameworkFork\System.ServiceModel\System\ServiceModel\UdpBinding.cs (3)
41
[
DefaultValue
(UdpConstants.Defaults.DuplicateMessageHistoryLength)]
67
[
DefaultValue
(UdpConstants.Defaults.MaxRetransmitCount)]
134
[
DefaultValue
(UdpConstants.Defaults.TimeToLive)]
FrameworkFork\System.ServiceModel\System\ServiceModel\WSFederationHttpBinding.cs (1)
71
[
DefaultValue
(0)]
FrameworkFork\System.Web.Services\Services\Description\MimeFormatExtensions.cs (2)
178
[XmlAttribute("group"),
DefaultValue
(1)]
190
[XmlAttribute("capture"),
DefaultValue
(0)]
Microsoft.AspNetCore.Mvc.Core.Test (2)
Infrastructure\ParameterDefaultValuesTest.cs (2)
47
[
DefaultValue
(10)] int input3)
60
[
DefaultValue
(10)] int input3 = 20)
Microsoft.AspNetCore.OpenApi.Tests (4)
Services\OpenApiSchemaService\OpenApiSchemaService.ParameterSchemas.cs (3)
166
[([
DefaultValue
(2)] int id) => { }, (JsonNode defaultValue) => Assert.Equal(2, defaultValue.GetValue<int>())],
173
[([
DefaultValue
(2)] int? id) => { }, (JsonNode defaultValue) => Assert.Equal(2, defaultValue.GetValue<int>())],
1000
[
DefaultValue
(20)]
Services\OpenApiSchemaService\OpenApiSchemaService.ResponseSchemas.cs (1)
1072
[
DefaultValue
(32)]
Microsoft.Extensions.AI.Abstractions.Tests (3)
test\Shared\JsonSchemaExporter\TestTypes.cs (1)
1151
public ClassWithComponentModelAttributes(string stringValue, [
DefaultValue
(42)] int intValue)
Utilities\AIJsonUtilitiesTests.cs (2)
476
[
DefaultValue
(5)] int valueWithDefaultValueAttr,
477
[Required,
DefaultValue
(5)] int valueWithDefaultValueAttrRequired,
Microsoft.Extensions.AI.Tests (2)
Functions\AIFunctionFactoryTest.cs (2)
92
AIFunction funcInt = AIFunctionFactory.Create(([
DefaultValue
(42)] int x) => x * 2);
101
AIFunction funcBoth = AIFunctionFactory.Create(([
DefaultValue
(100)] int y = 50) => y);
PresentationFramework (8)
System\Windows\Controls\GroupStyle.cs (1)
178
[
DefaultValue
(0)]
System\Windows\Controls\PasswordBox.cs (1)
253
[
DefaultValue
((int)0)]
System\Windows\Controls\TextBox.cs (5)
617
[
DefaultValue
(1)]
642
[
DefaultValue
(Int32.MaxValue)]
732
[
DefaultValue
((int)0)]
792
[
DefaultValue
((int)0)]
833
[
DefaultValue
((int)0)]
System\Windows\Data\BindingBase.cs (1)
160
[
DefaultValue
(0)]
Shared.Tests (1)
JsonSchemaExporter\TestTypes.cs (1)
1151
public ClassWithComponentModelAttributes(string stringValue, [
DefaultValue
(42)] int intValue)
System.Data.Common (3)
System\Data\Common\DbDataAdapter.cs (1)
147
[
DefaultValue
(1)]
System\Data\DataColumn.cs (1)
914
[
DefaultValue
(-1)]
System\Data\DataTable.cs (1)
1519
[
DefaultValue
(50)]
System.Data.Odbc (1)
System\Data\Odbc\OdbcConnection.cs (1)
64
DefaultValue
(ADP.DefaultConnectionTimeout),
System.DirectoryServices (7)
artifacts\obj\System.DirectoryServices\Debug\net11.0\System.DirectoryServices.notsupported.cs (7)
227
[System.ComponentModel.
DefaultValueAttribute
(0)]
243
[System.ComponentModel.
DefaultValueAttribute
(0)]
304
[System.ComponentModel.
DefaultValueAttribute
(0)]
306
[System.ComponentModel.
DefaultValueAttribute
(0)]
308
[System.ComponentModel.
DefaultValueAttribute
(0)]
312
[System.ComponentModel.
DefaultValueAttribute
(0)]
317
[System.ComponentModel.
DefaultValueAttribute
(0)]
System.Private.DataContractSerialization (5)
System\Xml\XmlDictionaryReaderQuotas.cs (5)
85
[
DefaultValue
(DefaultMaxStringContentLength)]
102
[
DefaultValue
(DefaultMaxArrayLength)]
119
[
DefaultValue
(DefaultMaxBytesPerRead)]
137
[
DefaultValue
(DefaultMaxDepth)]
155
[
DefaultValue
(DefaultMaxNameTableCharCount)]
System.ServiceModel.Http (2)
System\ServiceModel\Channels\HttpTransportBindingElement.cs (1)
122
[
DefaultValue
(TransportDefaults.MaxBufferSize)]
System\ServiceModel\HttpBindingBase.cs (1)
63
[
DefaultValue
(TransportDefaults.MaxBufferSize)]
System.ServiceModel.NetFramingBase (2)
System\ServiceModel\Channels\ConnectionOrientedTransportBindingElement.cs (2)
31
[
DefaultValue
(ConnectionOrientedTransportDefaults.ConnectionBufferSize)]
50
[
DefaultValue
(NFTransportDefaults.MaxBufferSize)]
System.ServiceModel.NetNamedPipe (1)
System\ServiceModel\NetNamedPipeBinding.cs (1)
49
[
DefaultValue
(NPTransportDefaults.MaxBufferSize)]
System.ServiceModel.NetTcp (1)
System\ServiceModel\NetTcpBinding.cs (1)
49
[
DefaultValue
(TcpTransportDefaults.MaxBufferSize)]
System.ServiceModel.Primitives (11)
System\ServiceModel\Channels\BinaryMessageEncodingBindingElement.cs (3)
82
[
DefaultValue
(EncoderDefaults.MaxReadPoolSize)]
100
[
DefaultValue
(EncoderDefaults.MaxWritePoolSize)]
135
[
DefaultValue
(BinaryEncoderDefaults.MaxSessionSize)]
System\ServiceModel\Channels\MtomMessageEncodingBindingElement.cs (3)
55
[
DefaultValue
(EncoderDefaults.MaxReadPoolSize)]
73
[
DefaultValue
(EncoderDefaults.MaxWritePoolSize)]
99
[
DefaultValue
(MtomEncoderDefaults.MaxBufferSize)]
System\ServiceModel\Channels\ReliableSessionBindingElement.cs (3)
98
[
DefaultValue
(ReliableSessionDefaults.MaxPendingChannels)]
114
[
DefaultValue
(ReliableSessionDefaults.MaxRetryCount)]
130
[
DefaultValue
(ReliableSessionDefaults.MaxTransferWindowSize)]
System\ServiceModel\Channels\TextMessageEncodingBindingElement.cs (2)
53
[
DefaultValue
(EncoderDefaults.MaxReadPoolSize)]
71
[
DefaultValue
(EncoderDefaults.MaxWritePoolSize)]
System.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\UnixDomainSocketBinding.cs (1)
41
[
DefaultValue
(UnixDomainSocketTransportDefaults.MaxBufferSize)]
System.Windows.Forms (116)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
502
[
DefaultValue
(ImageList.Indexer.DefaultIndex)]
System\Windows\Forms\Controls\Buttons\FlatButtonAppearance.cs (1)
31
[
DefaultValue
(1)]
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
459
[
DefaultValue
(106)]
647
[
DefaultValue
(8)]
682
[
DefaultValue
(0)]
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
1381
[
DefaultValue
(0)]
3174
[
DefaultValue
(0)]
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (2)
323
[
DefaultValue
(0)]
606
[
DefaultValue
(DefaultMinColumnThickness)]
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (2)
315
[
DefaultValue
(1)]
375
[
DefaultValue
(DefaultMaxDropDownItems)]
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxColumn.cs (2)
264
[
DefaultValue
(1)]
411
[
DefaultValue
(DataGridViewComboBoxCell.DefaultMaxDropDownItems)]
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (1)
119
[
DefaultValue
(0)]
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
64
[
DefaultValue
(MaxInputLengthDefault)]
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxColumn.cs (1)
35
[
DefaultValue
(ColumnMaxInputLength)]
System\Windows\Forms\Controls\Labels\Label.cs (1)
408
[
DefaultValue
(ImageList.Indexer.DefaultIndex)]
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (2)
233
[
DefaultValue
(0)]
465
[
DefaultValue
(0)]
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (2)
188
[
DefaultValue
(ImageList.Indexer.DefaultIndex)]
383
[
DefaultValue
(60)]
System\Windows\Forms\Controls\ListView\ListView.cs (1)
1859
[
DefaultValue
(0)]
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (1)
273
[
DefaultValue
(-1)]
System\Windows\Forms\Controls\ListView\ListViewItem.cs (3)
465
[
DefaultValue
(ImageList.Indexer.DefaultIndex)]
543
[
DefaultValue
(0)]
715
[
DefaultValue
(ImageList.Indexer.DefaultIndex)]
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (2)
468
[
DefaultValue
(DefaultMaxSelectionCount)]
601
[
DefaultValue
(DefaultScrollChange)]
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (5)
225
[
DefaultValue
(100)]
264
[
DefaultValue
(100)]
302
[
DefaultValue
(0)]
409
[
DefaultValue
(10)]
462
[
DefaultValue
(0)]
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (7)
215
[
DefaultValue
(0)]
486
[
DefaultValue
(int.MaxValue)]
555
[
DefaultValue
(0)]
799
[
DefaultValue
(0)]
949
[
DefaultValue
(0)]
997
[
DefaultValue
(0)]
1118
[
DefaultValue
(0)]
System\Windows\Forms\Controls\Splitter\Splitter.cs (2)
308
[
DefaultValue
(25)]
334
[
DefaultValue
(25)]
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
658
[
DefaultValue
(-1)]
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
230
[
DefaultValue
(-1)]
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
632
[
DefaultValue
(32767)]
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (3)
147
[
DefaultValue
(106)]
218
[
DefaultValue
(8)]
228
[
DefaultValue
(0)]
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
1301
[
DefaultValue
(-1)]
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.cs (5)
98
[
DefaultValue
(100)]
107
[
DefaultValue
(100)]
123
[
DefaultValue
(0)]
165
[
DefaultValue
(10)]
222
[
DefaultValue
(0)]
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
263
[
DefaultValue
(32767)]
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (6)
273
[
DefaultValue
(5)]
302
[
DefaultValue
(10)]
328
[
DefaultValue
(0)]
476
[
DefaultValue
(1)]
558
[
DefaultValue
(1)]
600
[
DefaultValue
(0)]
System\Windows\Forms\Controls\TreeView\TreeNode.cs (3)
503
[
DefaultValue
(ImageList.Indexer.DefaultIndex)]
884
[
DefaultValue
(ImageList.Indexer.DefaultIndex)]
1009
[
DefaultValue
(ImageList.Indexer.DefaultIndex)]
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
524
[
DefaultValue
(ImageList.Indexer.DefaultIndex)]
996
[
DefaultValue
(ImageList.Indexer.DefaultIndex)]
System\Windows\Forms\Controls\Unsupported\ContextMenu\MenuItem.cs (1)
163
[
DefaultValue
(0)]
System\Windows\Forms\Controls\Unsupported\DataGrid\DataGrid.cs (2)
386
[
DefaultValue
(75)]
435
[
DefaultValue
(35)]
System\Windows\Forms\Controls\Unsupported\DataGrid\DataGridColumnStyle.cs (1)
131
[
DefaultValue
(100)]
System\Windows\Forms\Controls\Unsupported\DataGrid\DataGridTableStyle.cs (2)
204
[
DefaultValue
(75)]
260
[
DefaultValue
(35)]
System\Windows\Forms\Controls\Unsupported\StatusBar\StatusBarPanel.cs (2)
61
[
DefaultValue
(10)]
114
[
DefaultValue
(100)]
System\Windows\Forms\Controls\Unsupported\ToolBar\ToolBarButton.cs (1)
50
[
DefaultValue
(-1)]
System\Windows\Forms\Controls\UpDown\DomainUpDown.cs (1)
81
[
DefaultValue
(-1)]
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (1)
95
[
DefaultValue
(DefaultDecimalPlaces)]
System\Windows\Forms\DataBinding\BindingSource.cs (1)
357
[
DefaultValue
(-1)]
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (1)
267
[
DefaultValue
(1)]
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (2)
174
[
DefaultValue
(DefaultMaxSize)]
199
[
DefaultValue
(DefaultMinSize)]
System\Windows\Forms\ErrorProvider\ErrorProvider.cs (2)
508
[
DefaultValue
(DefaultBlinkRate)]
750
[
DefaultValue
(0)]
System\Windows\Forms\Layout\Containers\SplitContainer.cs (5)
573
[
DefaultValue
(25)]
606
[
DefaultValue
(25)]
633
[
DefaultValue
(50)]
739
[
DefaultValue
(1)]
779
[
DefaultValue
(4)]
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (6)
109
[
DefaultValue
(0)]
142
[
DefaultValue
(0)]
180
[
DefaultValue
(1)]
194
[
DefaultValue
(1)]
207
[
DefaultValue
(-1)] // if change this value, also change the SerializeViaAdd in TableLayoutControlCollectionCodeDomSerializer
235
[
DefaultValue
(-1)] // if change this value, also change the SerializeViaAdd in TableLayoutControlCollectionCodeDomSerializer
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (7)
82
[
DefaultValue
(0)]
92
[
DefaultValue
(0)]
118
[
DefaultValue
(0)]
315
[
DefaultValue
(-1)]
350
[
DefaultValue
(-1)]
363
[
DefaultValue
(-1)]
376
[
DefaultValue
(-1)]
System\Windows\Forms\Printing\PrintPreviewControl.cs (3)
165
[
DefaultValue
(1)]
183
[
DefaultValue
(1)]
201
[
DefaultValue
(0)]
System\Windows\Forms\Scrolling\ScrollBar.cs (5)
198
[
DefaultValue
(10)]
227
[
DefaultValue
(100)]
257
[
DefaultValue
(0)]
288
[
DefaultValue
(1)]
344
[
DefaultValue
(0)]
System\Windows\Forms\Scrolling\ScrollProperties.cs (5)
70
[
DefaultValue
(10)]
100
[
DefaultValue
(100)]
136
[
DefaultValue
(0)]
182
[
DefaultValue
(1)]
211
[
DefaultValue
(0)]
System\Windows\Forms\Timer.cs (1)
133
[
DefaultValue
(100)]
System\Windows\Forms\ToolTip\ToolTip.cs (1)
137
[
DefaultValue
(DefaultDelay)]
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DocumentDesigner.cs (1)
214
[
DefaultValue
(80)]