NativeMethods.WriteFile, méthode (IntPtr, Byte*, Int32, UInt32%, IntPtr)
Ce type a un attribut SecurityCriticalAttribute, qui le limite à un usage interne par la bibliothèque de classes .NET Framework pour Silverlight. Un code d'application qui utilise un membre de ce type lève une exception MethodAccessException.
Espace de noms : Microsoft.TeamFoundation.Common.Internal
Assembly : Microsoft.TeamFoundation.Common (dans Microsoft.TeamFoundation.Common.dll)
Syntaxe
'Déclaration
Public Shared Function WriteFile ( _
handle As IntPtr, _
bytes As Byte*, _
numBytesToWrite As Integer, _
<OutAttribute> ByRef numBytesWritten As UInteger, _
mustBeZero As IntPtr _
) As Boolean
public static bool WriteFile(
IntPtr handle,
byte* bytes,
int numBytesToWrite,
out uint numBytesWritten,
IntPtr mustBeZero
)
Paramètres
- handle
Type : System.IntPtr
- bytes
Type : System.Byte*
- numBytesToWrite
Type : System.Int32
- numBytesWritten
Type : System.UInt32%
- mustBeZero
Type : System.IntPtr
Valeur de retour
Type : System.Boolean