Udostępnij za pośrednictwem


AntiforgeryOptions.CookiePath Właściwość

Definicja

Przestroga

This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.Path.

Ta właściwość jest przestarzała i zostanie usunięta w przyszłej wersji. Zalecaną alternatywą jest .Cookie

Ścieżka ustawiona na pliku cookie. Jeśli ustawiono nullwartość , atrybut "path" w pliku cookie jest ustawiony na wartość bieżącego żądania PathBase . Jeśli wartość PathBase jest null lub jest pusta, atrybut "path" jest ustawiony na wartość Path.

public:
 property Nullable<Microsoft::AspNetCore::Http::PathString> CookiePath { Nullable<Microsoft::AspNetCore::Http::PathString> get(); void set(Nullable<Microsoft::AspNetCore::Http::PathString> value); };
public Microsoft.AspNetCore.Http.PathString? CookiePath { get; set; }
[System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.Path.")]
public Microsoft.AspNetCore.Http.PathString? CookiePath { get; set; }
member this.CookiePath : Nullable<Microsoft.AspNetCore.Http.PathString> with get, set
[<System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.Path.")>]
member this.CookiePath : Nullable<Microsoft.AspNetCore.Http.PathString> with get, set
Public Property CookiePath As Nullable(Of PathString)

Wartość właściwości

Atrybuty

Dotyczy