7 types derived from DescriptionAttribute
Microsoft.Build.Tasks.Core (1)
System.Design.cs (1)
16internal sealed class SRDescriptionAttribute : DescriptionAttribute
System.ComponentModel.TypeConverter (1)
System\Timers\TimersDescriptionAttribute.cs (1)
15public class TimersDescriptionAttribute : DescriptionAttribute
System.Data.Common (1)
System\Data\DataSysAttribute.cs (1)
15public class DataSysDescriptionAttribute : DescriptionAttribute
System.Diagnostics.Process (1)
System\Diagnostics\MonitoringDescriptionAttribute.cs (1)
15public class MonitoringDescriptionAttribute : DescriptionAttribute
System.ServiceProcess.ServiceController (1)
artifacts\obj\System.ServiceProcess.ServiceController\Debug\net10.0\System.ServiceProcess.ServiceController.notsupported.cs (1)
105public partial class ServiceProcessDescriptionAttribute : System.ComponentModel.DescriptionAttribute
System.Windows.Forms (1)
SRDescriptionAttribute.cs (1)
9internal sealed class SRDescriptionAttribute : DescriptionAttribute
System.Windows.Forms.Design (1)
SRDescriptionAttribute.cs (1)
9internal sealed class SRDescriptionAttribute : DescriptionAttribute
92 instantiations of DescriptionAttribute
Microsoft.AspNetCore.Components.WebView.WindowsForms (5)
BlazorWebView.cs (5)
75 [Description(@"Path to the host page within the application's static files. Example: wwwroot\index.html.")] 91 [Description(@"Path for initial Blazor navigation when the Blazor component is finished loading.")] 128 [Description("Allows customizing how links are opened. By default, opens internal links in the webview and external links in an external app.")] 135 [Description("Allows customizing the web view before it is created.")] 142 [Description("Allows customizing the web view after it is created.")]
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
EndpointMetadataApiDescriptionProviderTest.cs (1)
919var apiDescription = GetApiDescription(([Description("The name.")] string name) => { });
Microsoft.AspNetCore.OpenApi.Tests (7)
Services\OpenApiSchemaService\OpenApiSchemaService.ParameterSchemas.cs (1)
499builder.MapGet("/api", ([Description("The ID of the entity")] int id) => { });
Services\OpenApiSchemaService\OpenApiSchemaService.RequestBodySchemas.cs (5)
411builder.MapPost("/api", ([Description("The todo item to create.")] DescriptionTodo todo) => { }); 547[Description("The unique identifier for a todo item.")] 550[Description("The title of the todo item.")] 553[Description("The completion status of the todo item.")] 556[Description("The date and time the todo item was created.")]
Services\OpenApiSchemaService\OpenApiSchemaService.ResponseSchemas.cs (1)
732[Description("This is a description")]
Microsoft.DotNet.Build.Tasks.Feed (5)
src\model\PublishingConstants.cs (5)
52[Description("daily")] 55[Description("signed")] 58[Description("validated")] 61[Description("preview")] 64[Description("")]
Microsoft.Extensions.AI.Abstractions.Tests (8)
test\Shared\JsonSchemaExporter\TestTypes.cs (6)
872[property: Description("required integer")] int X1, string X2, bool X3, double X4, [Description("required string enum")] StringEnum X5, 873[property: Description("optional integer")] int Y1 = 42, string Y2 = "str", bool Y3 = true, double Y4 = 0, [Description("optional string enum")] StringEnum Y5 = StringEnum.A); 938[Description("The type description")] 941[Description("The property description")]
Utilities\AIJsonUtilitiesTests.cs (2)
317[Description("The type")] 318public record MyPoco([Description("The parameter")] int Key, MyEnumValue EnumValue, string? Value = null);
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
AzureAIInferenceChatClientTests.cs (2)
799Tools = [AIFunctionFactory.Create(([Description("The person whose age is being requested")] string personName) => 42, "GetPersonAge", "Gets the age of the specified person.")], 886Tools = [AIFunctionFactory.Create(([Description("The person whose age is being requested")] string personName) => 42, "GetPersonAge", "Gets the age of the specified person.")],
Microsoft.Extensions.AI.Integration.Tests (3)
ChatClientIntegrationTests.cs (3)
420var getTemperature = AIFunctionFactory.Create([Description("Gets the current temperature")] () => 459var getTemperature = AIFunctionFactory.Create([Description("Gets the current temperature")] () => 499var getTemperature = AIFunctionFactory.Create([Description("Gets the current temperature")] () =>
Microsoft.Extensions.AI.Ollama.Tests (5)
OllamaChatClientIntegrationTests.cs (3)
65var stockPriceTool = AIFunctionFactory.Create([Description("Returns the stock price for a given ticker symbol")] ( 66[Description("The ticker symbol")] string symbol, 67[Description("The currency code such as USD or JPY")] string currency) =>
OllamaChatClientTests.cs (2)
374Tools = [AIFunctionFactory.Create(([Description("The person whose age is being requested")] string personName) => 42, "GetPersonAge", "Gets the age of the specified person.")], 471Tools = [AIFunctionFactory.Create(([Description("The person whose age is being requested")] string personName) => 42, "GetPersonAge", "Gets the age of the specified person.")],
Microsoft.Extensions.AI.OpenAI.Tests (5)
OpenAIChatClientTests.cs (2)
770Tools = [AIFunctionFactory.Create(([Description("The person whose age is being requested")] string personName) => 42, "GetPersonAge", "Gets the age of the specified person.")], 874Tools = [AIFunctionFactory.Create(([Description("The person whose age is being requested")] string personName) => 42, "GetPersonAge", "Gets the age of the specified person.")],
OpenAIRealtimeIntegrationTests.cs (1)
75[Description("Returns the number of people that can fit in a room.")]
OpenAIRealtimeTests.cs (2)
84[Description("This is a description")] 85private MyType MyFunction(int a, [Description("Another param")] string b, MyType? c = null)
Microsoft.Extensions.AI.Tests (4)
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (1)
341[Description("Some test description")]
Functions\AIFunctionFactoryTest.cs (3)
129Func<string, string, string> dotnetFunc3 = [Description("This is a test function")] ([Description("This is A")] string a, [Description("This is B")] string b) => b + " " + a;
Microsoft.ML.FastTree (15)
FastTree.cs (15)
2998[Description("BRANCH_LEQ")] 3000[Description("BRANCH_LT")] 3002[Description("BRANCH_GTE")] 3004[Description("BRANCH_GT")] 3006[Description("BRANCH_EQ")] 3008[Description("BRANCH_LT")] 3010[Description("LEAF")] 3016[Description("NONE")] 3018[Description("SOFTMAX")] 3020[Description("LOGISTIC")] 3022[Description("SOFTMAX_ZERO")] 3028[Description("AVERAGE")] 3030[Description("SUM")] 3032[Description("MIN")] 3034[Description("MAX")]
Roslyn.VisualStudio.DiagnosticsWindow (1)
VisualStudioDiagnosticsWindowPackage.cs (1)
34[Description("Roslyn Diagnostics Window")]
Sample (2)
Endpoints\MapSchemasEndoints.cs (2)
22schemas.MapGet("/primitives", ([Description("The ID associated with the Todo item.")] int id, [Description("The number of Todos to fetch")] int size) => { });
Shared.Tests (6)
JsonSchemaExporter\TestTypes.cs (6)
872[property: Description("required integer")] int X1, string X2, bool X3, double X4, [Description("required string enum")] StringEnum X5, 873[property: Description("optional integer")] int Y1 = 42, string Y2 = "str", bool Y3 = true, double Y4 = 0, [Description("optional string enum")] StringEnum Y5 = StringEnum.A); 938[Description("The type description")] 941[Description("The property description")]
System.ComponentModel.Primitives (1)
System\ComponentModel\DescriptionAttribute.cs (1)
18public static readonly DescriptionAttribute Default = new DescriptionAttribute();
System.Windows.Forms (4)
System\Windows\Forms\ComponentModel\COM2Interop\COM2AboutBoxPropertyDescriptor.cs (1)
23new DescriptionAttribute(SR.AboutBoxDesc),
System\Windows\Forms\ComponentModel\COM2Interop\COM2IVsPerPropertyBrowsingHandler.cs (1)
67e.Add(new DescriptionAttribute(helpString.ToString()));
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (1)
522info.Attributes.Add(new DescriptionAttribute(helpStringBstr.ToString()));
System\Windows\Forms\Controls\Unsupported\DataGrid\DataGridTableStyle.cs (1)
290[Description("The foreground color for the current data grid row")]
System.Windows.Forms.Design (6)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1334DescriptionAttribute descriptionAttr = new(SR.DataGridViewColumnTypePropertyDescription);
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (1)
253new DescriptionAttribute(SR.DesignerPropName),
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (4)
379TypeDescriptor.AddAttributes(_bottomToolStripPanel, bottomToolboxBitmapAttribute, new DescriptionAttribute("bottom")); 380TypeDescriptor.AddAttributes(_rightToolStripPanel, rightToolboxBitmapAttribute, new DescriptionAttribute("right")); 381TypeDescriptor.AddAttributes(_leftToolStripPanel, leftToolboxBitmapAttribute, new DescriptionAttribute("left")); 382TypeDescriptor.AddAttributes(_topToolStripPanel, topToolboxBitmapAttribute, new DescriptionAttribute("top"));
System.Windows.Forms.Design.Tests (11)
System\ComponentModel\Design\DesignerActionListTests.cs (6)
141[Description("Description")] 148[Description("")] 155[Description(null)] 183[Description("Description")] 188[Description("")] 193[Description(null)]
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (1)
2013[Description("Description")]
System\Drawing\Design\ToolboxItemTests.cs (4)
1751[Description("Description")] 1760[Description("Description")] 1769[Description("Description")] 1778[Description("Description")]
System.Windows.Forms.Tests (1)
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (1)
1426[Description("Description")]
57 references to DescriptionAttribute
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (2)
EndpointMetadataApiDescriptionProviderTest.cs (2)
936var description = Assert.Single(descriptor.ParameterInfo.GetCustomAttributes<DescriptionAttribute>());
Microsoft.AspNetCore.OpenApi (3)
Services\OpenApiDocumentService.cs (1)
493parameterInfo.GetCustomAttributes().OfType<DescriptionAttribute>().LastOrDefault() is { } descriptionAttribute ?
Services\Schemas\OpenApiSchemaService.cs (2)
111if (attributeProvider.GetCustomAttributes(inherit: false).OfType<DescriptionAttribute>().LastOrDefault() is DescriptionAttribute descriptionAttribute)
Microsoft.DotNet.Build.Tasks.Feed (3)
src\Common\Internal\EnumExtensions.cs (3)
23DescriptionAttribute attr = 24Attribute.GetCustomAttribute(field, typeof(DescriptionAttribute)) as DescriptionAttribute;
Microsoft.Extensions.AI (3)
ChatCompletion\ChatClientStructuredOutputExtensions.cs (1)
205schemaDescription: typeof(T).GetCustomAttribute<DescriptionAttribute>()?.Description);
Functions\AIFunctionFactory.cs (1)
264Description = key.Description ?? key.Method.GetCustomAttribute<DescriptionAttribute>(inherit: true)?.Description ?? string.Empty;
Functions\AIFunctionFactoryOptions.cs (1)
47/// (for example, via a <see cref="DescriptionAttribute"/> on the method).
Microsoft.Extensions.AI.Abstractions (3)
Utilities\AIJsonUtilities.Schema.cs (3)
71description ??= method.GetCustomAttribute<DescriptionAttribute>()?.Description; 93description: parameter.GetCustomAttribute<DescriptionAttribute>(inherit: true)?.Description, 228if (ctx.GetCustomAttribute<DescriptionAttribute>() is { } attr)
Microsoft.Extensions.AI.Abstractions.Tests (2)
Utilities\AIJsonUtilitiesTests.cs (2)
220return context.TypeInfo.Type == typeof(int) && context.GetCustomAttribute<DescriptionAttribute>() is DescriptionAttribute attr
Microsoft.Extensions.AI.Integration.Tests (1)
PromptBasedFunctionCallingChatClient.cs (1)
205Description = p.GetCustomAttribute<DescriptionAttribute>()?.Description,
Microsoft.Extensions.AI.Tests (2)
Functions\AIFunctionFactoryTest.cs (2)
135p => Assert.Equal("This is A", p.GetCustomAttribute<DescriptionAttribute>()?.Description), 136p => Assert.Equal("This is B", p.GetCustomAttribute<DescriptionAttribute>()?.Description));
Microsoft.ML.Core (3)
Utilities\Utils.cs (3)
1255DescriptionAttribute attr = 1257typeof(DescriptionAttribute)) as DescriptionAttribute;
netstandard (1)
netstandard.cs (1)
222[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.DescriptionAttribute))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
208[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.DescriptionAttribute))]
System.ComponentModel.Primitives (4)
System\ComponentModel\DescriptionAttribute.cs (4)
15/// Specifies the default value for the <see cref='System.ComponentModel.DescriptionAttribute'/>, 18public static readonly DescriptionAttribute Default = new DescriptionAttribute(); 25/// Initializes a new instance of the <see cref='System.ComponentModel.DescriptionAttribute'/> class. 45obj is DescriptionAttribute other && other.Description == Description;
System.ComponentModel.TypeConverter (3)
System\ComponentModel\MemberDescriptor.cs (3)
171/// Gets the description of the member as specified in the <see cref='System.ComponentModel.DescriptionAttribute'/>. 173public virtual string Description => _description ??= ((DescriptionAttribute)Attributes[typeof(DescriptionAttribute)]!).Description;
System.Configuration.ConfigurationManager (3)
System\Configuration\ConfigurationProperty.cs (3)
73DescriptionAttribute descriptionAttribute = null; 110else if (attribute is DescriptionAttribute) 112descriptionAttribute = (DescriptionAttribute)attribute;
System.Windows.Forms.Design (4)
System\ComponentModel\Design\DesignerActionList.cs (2)
81if (GetCustomAttribute(info, typeof(DescriptionAttribute)) is DescriptionAttribute descAttr)
System\Drawing\Design\ToolboxItem.cs (1)
592if (TypeDescriptorHelper.TryGetAttribute(type, out DescriptionAttribute? descattr))
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1334DescriptionAttribute descriptionAttr = new(SR.DataGridViewColumnTypePropertyDescription);
System.Windows.Forms.Primitives (1)
Microsoft\VisualStudio\Shell\IVSMDPerPropertyBrowsing.cs (1)
88/// see <see cref="System.ComponentModel.DescriptionAttribute"/>. This can be the name of any type that
System.Windows.Forms.Tests (18)
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (18)
29Assert.Empty(Assert.IsType<DescriptionAttribute>(property.Attributes[typeof(DescriptionAttribute)]).Description); 45Assert.Empty(Assert.IsType<DescriptionAttribute>(property.Attributes[typeof(DescriptionAttribute)]).Description); 61Assert.Empty(Assert.IsType<DescriptionAttribute>(property.Attributes[typeof(DescriptionAttribute)]).Description); 77Assert.Empty(Assert.IsType<DescriptionAttribute>(property.Attributes[typeof(DescriptionAttribute)]).Description); 93Assert.Empty(Assert.IsType<DescriptionAttribute>(property.Attributes[typeof(DescriptionAttribute)]).Description); 507Assert.Empty(Assert.IsType<DescriptionAttribute>(property.Attributes[typeof(DescriptionAttribute)]).Description); 575Assert.Empty(Assert.IsType<DescriptionAttribute>(property.Attributes[typeof(DescriptionAttribute)]).Description); 792Assert.Empty(Assert.IsType<DescriptionAttribute>(property.Attributes[typeof(DescriptionAttribute)]).Description); 857Assert.Empty(Assert.IsType<DescriptionAttribute>(property.Attributes[typeof(DescriptionAttribute)]).Description);