SecurityContext.IsWindowsIdentityFlowSuppressed 方法

定义

确定当前安全上下文中Windows标识部分的流是否已取消。

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

返回

true 如果流已被禁止,则为否则,为 false.

例外

.NET 5+ (包括.NET核心):在所有情况下。

注解

基础结构组件使用 IsWindowsIdentityFlowSuppressed 方法来确定在异步操作期间SecurityContext迁移时是否传输Windows标识信息。

适用于