NativeMethods.SetFileInformationByHandle, méthode (SafeFileHandle, NativeMethods.FILE_INFO_BY_HANDLE_CLASS, NativeMethods.FILE_IO_PRIORITY_HINT_INFO%, UInt32)
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 SetFileInformationByHandle ( _
hFile As SafeFileHandle, _
FileInformationClass As NativeMethods.FILE_INFO_BY_HANDLE_CLASS, _
ByRef lpFileInformation As NativeMethods.FILE_IO_PRIORITY_HINT_INFO, _
dwBufferSize As UInteger _
) As Boolean
public static bool SetFileInformationByHandle(
SafeFileHandle hFile,
NativeMethods.FILE_INFO_BY_HANDLE_CLASS FileInformationClass,
ref NativeMethods.FILE_IO_PRIORITY_HINT_INFO lpFileInformation,
uint dwBufferSize
)
Paramètres
- hFile
Type : Microsoft.Win32.SafeHandles.SafeFileHandle
- FileInformationClass
Type : Microsoft.TeamFoundation.Common.Internal.NativeMethods.FILE_INFO_BY_HANDLE_CLASS
- lpFileInformation
Type : Microsoft.TeamFoundation.Common.Internal.NativeMethods.FILE_IO_PRIORITY_HINT_INFO%
- dwBufferSize
Type : System.UInt32
Valeur de retour
Type : System.Boolean