LinkGeneratorEndpointNameAddressExtensions.GetPathByName メソッド

定義

オーバーロード

GetPathByName(LinkGenerator, String, RouteValueDictionary, PathString, FragmentString, LinkOptions)

指定された値に基づき、絶対パスを含む URI を生成します。

GetPathByName(LinkGenerator, String, Object, PathString, FragmentString, LinkOptions)

指定された値に基づき、絶対パスを含む URI を生成します。

GetPathByName(LinkGenerator, HttpContext, String, RouteValueDictionary, Nullable<PathString>, FragmentString, LinkOptions)

指定された値に基づき、絶対パスを含む URI を生成します。

GetPathByName(LinkGenerator, HttpContext, String, Object, Nullable<PathString>, FragmentString, LinkOptions)

指定された値に基づき、絶対パスを含む URI を生成します。

GetPathByName(LinkGenerator, String, RouteValueDictionary, PathString, FragmentString, LinkOptions)

指定された値に基づき、絶対パスを含む URI を生成します。

public static string? GetPathByName (this Microsoft.AspNetCore.Routing.LinkGenerator generator, string endpointName, Microsoft.AspNetCore.Routing.RouteValueDictionary? values = default, Microsoft.AspNetCore.Http.PathString pathBase = default, Microsoft.AspNetCore.Http.FragmentString fragment = default, Microsoft.AspNetCore.Routing.LinkOptions? options = default);
static member GetPathByName : Microsoft.AspNetCore.Routing.LinkGenerator * string * Microsoft.AspNetCore.Routing.RouteValueDictionary * Microsoft.AspNetCore.Http.PathString * Microsoft.AspNetCore.Http.FragmentString * Microsoft.AspNetCore.Routing.LinkOptions -> string
<Extension()>
Public Function GetPathByName (generator As LinkGenerator, endpointName As String, Optional values As RouteValueDictionary = Nothing, Optional pathBase As PathString = Nothing, Optional fragment As FragmentString = Nothing, Optional options As LinkOptions = Nothing) As String

パラメーター

endpointName
String

エンドポイント名。 エンドポイントを解決するために使用されます。

values
RouteValueDictionary

ルート値。 ルート テンプレートのパラメーターを展開するために使用します。 省略可能。

pathBase
PathString

省略可能な URI パスベース。 結果の URI のパスの前に追加されます。

fragment
FragmentString

省略可能な URI フラグメント。 結果の URI に追加されます。

options
LinkOptions

オプションの LinkOptions。 指定されたオブジェクトの設定は、 の RouteOptions名前が一致する設定をオーバーライドします。

戻り値

絶対パス () nullを持つ URI。

適用対象

GetPathByName(LinkGenerator, String, Object, PathString, FragmentString, LinkOptions)

指定された値に基づき、絶対パスを含む URI を生成します。

public static string GetPathByName (this Microsoft.AspNetCore.Routing.LinkGenerator generator, string endpointName, object values, Microsoft.AspNetCore.Http.PathString pathBase = default, Microsoft.AspNetCore.Http.FragmentString fragment = default, Microsoft.AspNetCore.Routing.LinkOptions options = default);
public static string? GetPathByName (this Microsoft.AspNetCore.Routing.LinkGenerator generator, string endpointName, object? values, Microsoft.AspNetCore.Http.PathString pathBase = default, Microsoft.AspNetCore.Http.FragmentString fragment = default, Microsoft.AspNetCore.Routing.LinkOptions? options = default);
static member GetPathByName : Microsoft.AspNetCore.Routing.LinkGenerator * string * obj * Microsoft.AspNetCore.Http.PathString * Microsoft.AspNetCore.Http.FragmentString * Microsoft.AspNetCore.Routing.LinkOptions -> string
<Extension()>
Public Function GetPathByName (generator As LinkGenerator, endpointName As String, values As Object, Optional pathBase As PathString = Nothing, Optional fragment As FragmentString = Nothing, Optional options As LinkOptions = Nothing) As String

パラメーター

endpointName
String

エンドポイント名。 エンドポイントを解決するために使用されます。

values
Object

ルート値。 ルート テンプレートのパラメーターを展開するために使用します。 省略可能。

pathBase
PathString

省略可能な URI パスベース。 結果の URI のパスの前に追加されます。

fragment
FragmentString

省略可能な URI フラグメント。 結果の URI に追加されます。

options
LinkOptions

オプションの LinkOptions。 指定されたオブジェクトの設定は、 の RouteOptions名前が一致する設定をオーバーライドします。

戻り値

絶対パス () nullを持つ URI。

適用対象

GetPathByName(LinkGenerator, HttpContext, String, RouteValueDictionary, Nullable<PathString>, FragmentString, LinkOptions)

指定された値に基づき、絶対パスを含む URI を生成します。

public static string? GetPathByName (this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string endpointName, Microsoft.AspNetCore.Routing.RouteValueDictionary? values = default, Microsoft.AspNetCore.Http.PathString? pathBase = default, Microsoft.AspNetCore.Http.FragmentString fragment = default, Microsoft.AspNetCore.Routing.LinkOptions? options = default);
static member GetPathByName : Microsoft.AspNetCore.Routing.LinkGenerator * Microsoft.AspNetCore.Http.HttpContext * string * Microsoft.AspNetCore.Routing.RouteValueDictionary * Nullable<Microsoft.AspNetCore.Http.PathString> * Microsoft.AspNetCore.Http.FragmentString * Microsoft.AspNetCore.Routing.LinkOptions -> string
<Extension()>
Public Function GetPathByName (generator As LinkGenerator, httpContext As HttpContext, endpointName As String, Optional values As RouteValueDictionary = Nothing, Optional pathBase As Nullable(Of PathString) = Nothing, Optional fragment As FragmentString = Nothing, Optional options As LinkOptions = Nothing) As String

パラメーター

httpContext
HttpContext

現在の HttpContext 要求に関連付けられている 。

endpointName
String

エンドポイント名。 エンドポイントを解決するために使用されます。

values
RouteValueDictionary

ルート値。 ルート テンプレートのパラメーターを展開するために使用します。 省略可能。

pathBase
Nullable<PathString>

省略可能な URI パスベース。 結果の URI のパスの前に追加されます。 指定しない場合は、 の PathBase 値が使用されます。

fragment
FragmentString

省略可能な URI フラグメント。 結果の URI に追加されます。

options
LinkOptions

オプションの LinkOptions。 指定されたオブジェクトの設定は、 の RouteOptions名前が一致する設定をオーバーライドします。

戻り値

絶対パス () nullを持つ URI。

適用対象

GetPathByName(LinkGenerator, HttpContext, String, Object, Nullable<PathString>, FragmentString, LinkOptions)

指定された値に基づき、絶対パスを含む URI を生成します。

public static string GetPathByName (this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string endpointName, object values, Microsoft.AspNetCore.Http.PathString? pathBase = default, Microsoft.AspNetCore.Http.FragmentString fragment = default, Microsoft.AspNetCore.Routing.LinkOptions options = default);
public static string? GetPathByName (this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string endpointName, object? values, Microsoft.AspNetCore.Http.PathString? pathBase = default, Microsoft.AspNetCore.Http.FragmentString fragment = default, Microsoft.AspNetCore.Routing.LinkOptions? options = default);
static member GetPathByName : Microsoft.AspNetCore.Routing.LinkGenerator * Microsoft.AspNetCore.Http.HttpContext * string * obj * Nullable<Microsoft.AspNetCore.Http.PathString> * Microsoft.AspNetCore.Http.FragmentString * Microsoft.AspNetCore.Routing.LinkOptions -> string
<Extension()>
Public Function GetPathByName (generator As LinkGenerator, httpContext As HttpContext, endpointName As String, values As Object, Optional pathBase As Nullable(Of PathString) = Nothing, Optional fragment As FragmentString = Nothing, Optional options As LinkOptions = Nothing) As String

パラメーター

httpContext
HttpContext

現在の HttpContext 要求に関連付けられている 。

endpointName
String

エンドポイント名。 エンドポイントを解決するために使用されます。

values
Object

ルート値。 ルート テンプレートのパラメーターを展開するために使用します。 省略可能。

pathBase
Nullable<PathString>

省略可能な URI パスベース。 結果の URI のパスの前に追加されます。 指定しない場合は、 の PathBase 値が使用されます。

fragment
FragmentString

省略可能な URI フラグメント。 結果の URI に追加されます。

options
LinkOptions

オプションの LinkOptions。 指定されたオブジェクトの設定は、 の RouteOptions名前が一致する設定をオーバーライドします。

戻り値

絶対パス () nullを持つ URI。

適用対象