Click or drag to resize

NetworkClientSetCookieAsync Method

Version 86.0.240

[Missing <summary> documentation for "M:CefSharp.DevTools.Network.NetworkClient.SetCookieAsync(System.String,System.String,System.String,System.String,System.String,System.Nullable{System.Boolean},System.Nullable{System.Boolean},System.Nullable{CefSharp.DevTools.Network.CookieSameSite},System.Nullable{System.Int64},System.Nullable{CefSharp.DevTools.Network.CookiePriority})"]

Namespace:  CefSharp.DevTools.Network
Assembly:  CefSharp (in CefSharp.dll) Version: 86.0.240.0 (86.0.240.0)
Syntax
public Task<SetCookieResponse> SetCookieAsync(
	string name,
	string value,
	string url = null,
	string domain = null,
	string path = null,
	Nullable<bool> secure = null,
	Nullable<bool> httpOnly = null,
	Nullable<CookieSameSite> sameSite = null,
	Nullable<long> expires = null,
	Nullable<CookiePriority> priority = null
)

Parameters

name
Type: SystemString

[Missing <param name="name"/> documentation for "M:CefSharp.DevTools.Network.NetworkClient.SetCookieAsync(System.String,System.String,System.String,System.String,System.String,System.Nullable{System.Boolean},System.Nullable{System.Boolean},System.Nullable{CefSharp.DevTools.Network.CookieSameSite},System.Nullable{System.Int64},System.Nullable{CefSharp.DevTools.Network.CookiePriority})"]

value
Type: SystemString

[Missing <param name="value"/> documentation for "M:CefSharp.DevTools.Network.NetworkClient.SetCookieAsync(System.String,System.String,System.String,System.String,System.String,System.Nullable{System.Boolean},System.Nullable{System.Boolean},System.Nullable{CefSharp.DevTools.Network.CookieSameSite},System.Nullable{System.Int64},System.Nullable{CefSharp.DevTools.Network.CookiePriority})"]

url (Optional)
Type: SystemString

[Missing <param name="url"/> documentation for "M:CefSharp.DevTools.Network.NetworkClient.SetCookieAsync(System.String,System.String,System.String,System.String,System.String,System.Nullable{System.Boolean},System.Nullable{System.Boolean},System.Nullable{CefSharp.DevTools.Network.CookieSameSite},System.Nullable{System.Int64},System.Nullable{CefSharp.DevTools.Network.CookiePriority})"]

domain (Optional)
Type: SystemString

[Missing <param name="domain"/> documentation for "M:CefSharp.DevTools.Network.NetworkClient.SetCookieAsync(System.String,System.String,System.String,System.String,System.String,System.Nullable{System.Boolean},System.Nullable{System.Boolean},System.Nullable{CefSharp.DevTools.Network.CookieSameSite},System.Nullable{System.Int64},System.Nullable{CefSharp.DevTools.Network.CookiePriority})"]

path (Optional)
Type: SystemString

[Missing <param name="path"/> documentation for "M:CefSharp.DevTools.Network.NetworkClient.SetCookieAsync(System.String,System.String,System.String,System.String,System.String,System.Nullable{System.Boolean},System.Nullable{System.Boolean},System.Nullable{CefSharp.DevTools.Network.CookieSameSite},System.Nullable{System.Int64},System.Nullable{CefSharp.DevTools.Network.CookiePriority})"]

secure (Optional)
Type: SystemNullableBoolean

[Missing <param name="secure"/> documentation for "M:CefSharp.DevTools.Network.NetworkClient.SetCookieAsync(System.String,System.String,System.String,System.String,System.String,System.Nullable{System.Boolean},System.Nullable{System.Boolean},System.Nullable{CefSharp.DevTools.Network.CookieSameSite},System.Nullable{System.Int64},System.Nullable{CefSharp.DevTools.Network.CookiePriority})"]

httpOnly (Optional)
Type: SystemNullableBoolean

[Missing <param name="httpOnly"/> documentation for "M:CefSharp.DevTools.Network.NetworkClient.SetCookieAsync(System.String,System.String,System.String,System.String,System.String,System.Nullable{System.Boolean},System.Nullable{System.Boolean},System.Nullable{CefSharp.DevTools.Network.CookieSameSite},System.Nullable{System.Int64},System.Nullable{CefSharp.DevTools.Network.CookiePriority})"]

sameSite (Optional)
Type: SystemNullableCookieSameSite

[Missing <param name="sameSite"/> documentation for "M:CefSharp.DevTools.Network.NetworkClient.SetCookieAsync(System.String,System.String,System.String,System.String,System.String,System.Nullable{System.Boolean},System.Nullable{System.Boolean},System.Nullable{CefSharp.DevTools.Network.CookieSameSite},System.Nullable{System.Int64},System.Nullable{CefSharp.DevTools.Network.CookiePriority})"]

expires (Optional)
Type: SystemNullableInt64

[Missing <param name="expires"/> documentation for "M:CefSharp.DevTools.Network.NetworkClient.SetCookieAsync(System.String,System.String,System.String,System.String,System.String,System.Nullable{System.Boolean},System.Nullable{System.Boolean},System.Nullable{CefSharp.DevTools.Network.CookieSameSite},System.Nullable{System.Int64},System.Nullable{CefSharp.DevTools.Network.CookiePriority})"]

priority (Optional)
Type: SystemNullableCookiePriority

[Missing <param name="priority"/> documentation for "M:CefSharp.DevTools.Network.NetworkClient.SetCookieAsync(System.String,System.String,System.String,System.String,System.String,System.Nullable{System.Boolean},System.Nullable{System.Boolean},System.Nullable{CefSharp.DevTools.Network.CookieSameSite},System.Nullable{System.Int64},System.Nullable{CefSharp.DevTools.Network.CookiePriority})"]

Return Value

Type: TaskSetCookieResponse

[Missing <returns> documentation for "M:CefSharp.DevTools.Network.NetworkClient.SetCookieAsync(System.String,System.String,System.String,System.String,System.String,System.Nullable{System.Boolean},System.Nullable{System.Boolean},System.Nullable{CefSharp.DevTools.Network.CookieSameSite},System.Nullable{System.Int64},System.Nullable{CefSharp.DevTools.Network.CookiePriority})"]

See Also