SecurityContext.SuppressFlowWindowsIdentity メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > SecurityContext.SuppressFlowWindowsIdentity メソッドの意味・解説 

SecurityContext.SuppressFlowWindowsIdentity メソッド

メモ : このメソッドは、.NET Framework version 2.0 で新しく追加されたものです。

複数の非同期スレッドにおける現在のセキュリティ コンテキストの Windows ID 部分のフローを中止します。

名前空間: System.Security
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Public Shared Function SuppressFlowWindowsIdentity
 As AsyncFlowControl
Dim returnValue As AsyncFlowControl

returnValue = SecurityContext.SuppressFlowWindowsIdentity
public static AsyncFlowControl SuppressFlowWindowsIdentity
 ()
public:
static AsyncFlowControl SuppressFlowWindowsIdentity ()
public static AsyncFlowControl SuppressFlowWindowsIdentity
 ()
public static function SuppressFlowWindowsIdentity
 () : AsyncFlowControl

戻り値
フローを復元するための AsyncFlowControl 構造体。

解説解説

このメソッドを使用して、SecurityContext が非同期スレッド間を移行する際に Windows ID のフローを中止します。

返された AsyncFlowControl 構造体に対して Undo メソッドを使用すると、SecurityContext オブジェクトが前の状態に戻ります。

使用例使用例

SuppressFlowWindowsIdentity メソッドを使用して Windows ID のフローを中止する方法を次のコード例に示します。このコード例は、SecurityContext クラスのトピックで取り上げているコード例の一部分です。

Dim aFC2 As AsyncFlowControl
aFC2 = Security.SecurityContext.SuppressFlowWindowsIdentity()
Console.WriteLine("Has the Windows identity flow been suppressed?
 " & _
    Security.SecurityContext.IsWindowsIdentityFlowSuppressed())
AsyncFlowControl aFC2 =
    SecurityContext.SuppressFlowWindowsIdentity();
Console.WriteLine("Has the Windows identity flow been suppressed?"
    + SecurityContext.IsWindowsIdentityFlowSuppressed());
AsyncFlowControl aFC2 = SecurityContext.SuppressFlowWindowsIdentity();
Console.WriteLine("Has the Windows identity flow been suppressed?"
    + SecurityContext.IsWindowsIdentityFlowSuppressed());
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「SecurityContext.SuppressFlowWindowsIdentity メソッド」の関連用語

SecurityContext.SuppressFlowWindowsIdentity メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



SecurityContext.SuppressFlowWindowsIdentity メソッドのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS