NativeMethods.DuplicateHandle-Methode

Dieser Typ besitzt ein SecurityCriticalAttribute-Attribut, das ihn auf die interne Verwendung durch .NET Framework für die Silverlight-Klassenbibliothek beschränkt. Anwendungscode, der einen beliebigen Member dieses Typs verwendet, löst eine MethodAccessException aus.

Namespace:  Microsoft.TeamFoundation.Common.Internal
Assembly:  Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)

Syntax

'Declaration
Public Shared Function DuplicateHandle ( _
    hSourceProcessHandle As HandleRef, _
    hSourceHandle As SafeHandle, _
    hTargetProcessHandle As HandleRef, _
    <OutAttribute> ByRef lpTargetHandle As IntPtr, _
    dwDesiredAccess As UInteger, _
    bInheritHandle As Boolean, _
    dwOptions As UInteger _
) As Boolean
public static bool DuplicateHandle(
    HandleRef hSourceProcessHandle,
    SafeHandle hSourceHandle,
    HandleRef hTargetProcessHandle,
    out IntPtr lpTargetHandle,
    uint dwDesiredAccess,
    bool bInheritHandle,
    uint dwOptions
)

Parameter

Rückgabewert

Typ: System.Boolean

Siehe auch

Referenz

NativeMethods Klasse

Microsoft.TeamFoundation.Common.Internal-Namespace