C# & .NET Complete Reference Index
Select any item below to open its full syntax specification, parameters, and live example.
API
@bind<input @bind="book.Note" />
Connects input values to component state.
@key<div @key="book.Id">...</div>
Preserves element or component identity within a sibling scope.
@onclick<button @onclick="Add">Add book</button>
Binds a click event to a component handler.
@rendermode@rendermode InteractiveServer
Selects an interactive render mode at a supported component boundary.
AcceptWebSocketAsyncawait ctx.WebSockets.AcceptWebSocketAsync()
Accepts a valid WebSocket request.
ActionExecutingContextcontext.Result = new BadRequestResult();
Exposes action execution context; setting a result can short-circuit.
ActionFilterAttributepublic override void OnActionExecuting(ActionExecutingContext context) { }
Base attribute for action/result filter callbacks.
AddAuthenticationservices.AddAuthentication("catalog")
Sets the default scheme used when no more specific default applies.
AddAuthorizationCoreservices.AddAuthorizationCore(options => { });
Registers core authorization services for direct policy evaluation.
AddControllersWithViewsbuilder.Services.AddControllersWithViews();
Registers MVC controller and view services.
LANGUAGE
TYPE
METHOD
Activity.AddEventactivity.AddEvent(new ActivityEvent("validated"))
Adds a timestamped event to an activity. Use bounded event counts and allowlisted names and attributes. It does not itself send a log or export a trace.
Activity.SetStatusactivity.SetStatus(ActivityStatusCode.Error)
Sets the activity status and optional description. Status is instrumentation metadata, not an HTTP response or an exception handler. Avoid sensitive descriptions.
Activity.SetTag()child.SetTag("outcome", "accepted")
Sets an activity tag; avoid sensitive or unbounded values.
ActivityContext.TryParseActivityContext.TryParse(traceParent, traceState, isRemote: true, out var context)
Parses W3C trace context headers into a context value. A valid context is correlation metadata, not proof of identity or permission. Apply trust and sampling policy independently.
ActivitySource.AddActivityListener()ActivitySource.AddActivityListener(listener)
Registers a listener for activity creation and lifecycle notifications.
ActivitySource.StartActivity()source.StartActivity("reserve")
Starts a sampled activity when a listener requests one; the result can be null.
PROPERTY
Showing 20 of 859 entries