SecurityContext.IsWindowsIdentityFlowSuppressed 方法

定義

決定目前安全性內容中 Windows 識別部分的流量是否已抑制。

public:
 static bool IsWindowsIdentityFlowSuppressed();
public static bool IsWindowsIdentityFlowSuppressed ();
static member IsWindowsIdentityFlowSuppressed : unit -> bool
Public Shared Function IsWindowsIdentityFlowSuppressed () As Boolean

傳回

Boolean

如果已經抑制流量則為 true,否則為 false

例外狀況

.NET 5+ (包括 .NET Core) :在所有情況下。

備註

基礎結構 IsWindowsIdentityFlowSuppressed 元件會使用 方法,以判斷在非同步作業期間移轉時 SecurityContext ,是否要傳送Windows身分識別資訊。

適用於