AuthenticationOptions.AuthenticationMode 屬性

若為 Active,驗證中介軟體會替換連入要求使用者,並替換連出的 401 未授權回應。 若為 Passive,驗證中介軟體僅會在 AuthenticationType 明確指出時提供識別並替換回應。

命名空間:  Microsoft.Owin.Security
組件:  Microsoft.Owin.Security (在 Microsoft.Owin.Security.dll 中)

語法

'宣告
Public Property AuthenticationMode As AuthenticationMode 
    Get 
    Set
'用途
Dim instance As AuthenticationOptions 
Dim value As AuthenticationMode 

value = instance.AuthenticationMode

instance.AuthenticationMode = value
public AuthenticationMode AuthenticationMode { get; set; }
public:
property AuthenticationMode AuthenticationMode {
    AuthenticationMode get ();
    void set (AuthenticationMode value);
}
member AuthenticationMode : AuthenticationMode with get, set
function get AuthenticationMode () : AuthenticationMode 
function set AuthenticationMode (value : AuthenticationMode)

屬性值

型別:Microsoft.Owin.Security.AuthenticationMode
驗證模式。

請參閱

參考

AuthenticationOptions 類別

Microsoft.Owin.Security 命名空間