다음을 통해 공유


Marshal.GetThreadFromFiberCookie 메서드

참고: 이 메서드는 이제 사용되지 않습니다.

파이버 쿠키를 해당 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 매개 변수에 해당하는 Thread입니다.

예외

예외 형식 조건

ArgumentException

cookie 매개 변수가 0인 경우

설명

파이버 쿠키는 공용 언어 런타임을 해당 파이버 스케줄링 결정으로 변경할 때 호스트에서 사용하는 불투명한 토큰입니다. 이것은 스택과 레지스터 컨텍스트로 구성됩니다.

참고

이 메서드는 신뢰할 수 없는 코드에서 호출되지 않도록 SecurityAction.LinkDemand를 사용합니다. SecurityPermissionAttribute.UnmanagedCode 권한을 가지려면 직접 실행 호출자만 필요합니다. 부분적으로 신뢰할 수 있는 코드에서 특정 코드를 호출하는 경우 유효성 검사 없이 사용자 입력을 Marshal 클래스 메서드로 전달하지 마십시오. LinkDemand 멤버 사용에 대한 중요한 제한 사항은 Demand와 LinkDemand 비교를 참조하십시오.

.NET Framework 보안

플랫폼

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

1.0, 1.1에서 지원
2.0에서 사용되지 않음(컴파일러 경고)

참고 항목

참조

Marshal 클래스
Marshal 멤버
System.Runtime.InteropServices 네임스페이스
Thread