Share via


RoutingEndpointConventionBuilderExtensions.WithDisplayName Method

Definition

Overloads

WithDisplayName<TBuilder>(TBuilder, Func<EndpointBuilder,String>)

Sets the DisplayName using the provided func for all builders created by builder.

WithDisplayName<TBuilder>(TBuilder, String)

Sets the DisplayName to the provided displayName for all builders created by builder.

WithDisplayName<TBuilder>(TBuilder, Func<EndpointBuilder,String>)

Source:
RoutingEndpointConventionBuilderExtensions.cs

Sets the DisplayName using the provided func for all builders created by builder.

public:
generic <typename TBuilder>
 where TBuilder : Microsoft::AspNetCore::Builder::IEndpointConventionBuilder[System::Runtime::CompilerServices::Extension]
 static TBuilder WithDisplayName(TBuilder builder, Func<Microsoft::AspNetCore::Builder::EndpointBuilder ^, System::String ^> ^ func);
public static TBuilder WithDisplayName<TBuilder> (this TBuilder builder, Func<Microsoft.AspNetCore.Builder.EndpointBuilder,string> func) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder;
static member WithDisplayName : 'Builder * Func<Microsoft.AspNetCore.Builder.EndpointBuilder, string> -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder)
<Extension()>
Public Function WithDisplayName(Of TBuilder As IEndpointConventionBuilder) (builder As TBuilder, func As Func(Of EndpointBuilder, String)) As TBuilder

Type Parameters

TBuilder

Parameters

builder
TBuilder

The IEndpointConventionBuilder.

func
Func<EndpointBuilder,String>

A delegate that produces the display name for each EndpointBuilder.

Returns

TBuilder

The IEndpointConventionBuilder.

Applies to

WithDisplayName<TBuilder>(TBuilder, String)

Source:
RoutingEndpointConventionBuilderExtensions.cs

Sets the DisplayName to the provided displayName for all builders created by builder.

public:
generic <typename TBuilder>
 where TBuilder : Microsoft::AspNetCore::Builder::IEndpointConventionBuilder[System::Runtime::CompilerServices::Extension]
 static TBuilder WithDisplayName(TBuilder builder, System::String ^ displayName);
public static TBuilder WithDisplayName<TBuilder> (this TBuilder builder, string displayName) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder;
static member WithDisplayName : 'Builder * string -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder)
<Extension()>
Public Function WithDisplayName(Of TBuilder As IEndpointConventionBuilder) (builder As TBuilder, displayName As String) As TBuilder

Type Parameters

TBuilder

Parameters

builder
TBuilder

The IEndpointConventionBuilder.

displayName
String

The display name.

Returns

TBuilder

The IEndpointConventionBuilder.

Applies to