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

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

Marshal.GetThreadFromFiberCookie メソッド

メモ : このメソッドは、互換性のために残されています。

ファイバ cookie対応する System.Threading.Thread インスタンス変換します

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

<ObsoleteAttribute("The GetThreadFromFiberCookie method has
 been deprecated.  Use the hosting API to perform this operation.",
 False)> _
Public Shared Function GetThreadFromFiberCookie
 ( _
    cookie As Integer _
) As Thread
Dim cookie As Integer
Dim returnValue As Thread

returnValue = Marshal.GetThreadFromFiberCookie(cookie)
[ObsoleteAttribute("The GetThreadFromFiberCookie method has been deprecated.
  Use the hosting API to perform this operation.", false)]
 
public static Thread GetThreadFromFiberCookie
 (
    int cookie
)
[ObsoleteAttribute(L"The GetThreadFromFiberCookie method has been deprecated.
  Use the hosting API to perform this operation.", false)]
 
public:
static Thread^ GetThreadFromFiberCookie (
    int cookie
)
/** @attribute ObsoleteAttribute("The GetThreadFromFiberCookie method has been
 deprecated.  Use the hosting API to perform this operation.",
 false) */ 
public static Thread GetThreadFromFiberCookie
 (
    int cookie
)
ObsoleteAttribute("The GetThreadFromFiberCookie method has been deprecated.
  Use the hosting API to perform this operation.", false)
 
public static function GetThreadFromFiberCookie
 (
    cookie : int
) : Thread

パラメータ

cookie

ファイバ cookie を表す整数

戻り値
cookie パラメータ対応する Thread

例外例外
例外種類条件

ArgumentException

cookie パラメータが 0 です。

解説解説

ファイバ cookie は、ホストのファイバ スケジューリング決定対す共通言語ランタイム警告するときに、ホストによって使用される非透過トークンです。これらは、スタックレジスタコンテキスト構成されます。

メモメモ

このメソッドは SecurityAction.LinkDemand を使用して信頼関係のないコードからの呼び出し防ぎます。SecurityPermissionAttribute.UnmanagedCode アクセス許可は、直前呼び出し元にのみ要求されます。信頼性一部しか確認されていないコードから呼び出すことができるコード場合ユーザー入力検証せずに Marshal クラスに渡すことは避けてくださいLinkDemand メンバ使用に関する重要な制約事項については、「Demand と LinkDemand」を参照してください

.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からMarshal.GetThreadFromFiberCookie メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からMarshal.GetThreadFromFiberCookie メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からMarshal.GetThreadFromFiberCookie メソッド を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

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

   

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



Marshal.GetThreadFromFiberCookie メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS