RoutingEndpointConventionBuilderExtensions.WithDisplayName Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
WithDisplayName<TBuilder>(TBuilder, Func<EndpointBuilder,String>) |
Sets the DisplayName using the provided |
WithDisplayName<TBuilder>(TBuilder, String) |
Sets the DisplayName to the provided |
WithDisplayName<TBuilder>(TBuilder, Func<EndpointBuilder,String>)
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
- func
- Func<EndpointBuilder,String>
A delegate that produces the display name for each EndpointBuilder.
Returns
The IEndpointConventionBuilder.
Applies to
WithDisplayName<TBuilder>(TBuilder, String)
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
- displayName
- String
The display name.
Returns
The IEndpointConventionBuilder.