ClientWebSocketOptions.UseDefaultCredentials 属性

定义

获取或设置一个 Boolean 值,它指示是否应在 WebSocket 握手期间使用默认凭据。Gets or sets a Boolean value that indicates if default credentials should be used during WebSocket handshake.

public:
 property bool UseDefaultCredentials { bool get(); void set(bool value); };
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public bool UseDefaultCredentials { get; set; }
public bool UseDefaultCredentials { get; set; }
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.UseDefaultCredentials : bool with get, set
member this.UseDefaultCredentials : bool with get, set
Public Property UseDefaultCredentials As Boolean

属性值

Boolean

true 如果应在 WebSocket 握手期间使用默认凭据,则为;否则为 falsetrue if default credentials should be used during WebSocket handshake; otherwise, false. 默认值为 trueThe default is true.

属性

适用于