NativeMethods.CreateFile - метод
Этот тип содержит атрибут SecurityCriticalAttribute, который разрешает только его внутреннее использование библиотекой классов .NET Framework для Silverlight. Код приложения, в котором используется любой член этого типа, создает исключение MethodAccessException.
Пространство имен: Microsoft.TeamFoundation.Common.Internal
Сборка: Microsoft.TeamFoundation.Common (в Microsoft.TeamFoundation.Common.dll)
Синтаксис
'Декларация
Public Shared Function CreateFile ( _
lpFileName As String, _
dwDesiredAccess As NativeMethods.FileAccess, _
dwShareMode As NativeMethods.FileShare, _
lpSecurityAttributes As IntPtr, _
dwCreationDisposition As NativeMethods.CreationDisposition, _
dwFlagsAndAttributes As NativeMethods.FileAttributes, _
hTemplateFile As IntPtr _
) As SafeFileHandle
public static SafeFileHandle CreateFile(
string lpFileName,
NativeMethods.FileAccess dwDesiredAccess,
NativeMethods.FileShare dwShareMode,
IntPtr lpSecurityAttributes,
NativeMethods.CreationDisposition dwCreationDisposition,
NativeMethods.FileAttributes dwFlagsAndAttributes,
IntPtr hTemplateFile
)
Параметры
- lpFileName
Тип: System.String
- dwDesiredAccess
Тип: Microsoft.TeamFoundation.Common.Internal.NativeMethods.FileAccess
- dwShareMode
Тип: Microsoft.TeamFoundation.Common.Internal.NativeMethods.FileShare
- lpSecurityAttributes
Тип: System.IntPtr
- dwCreationDisposition
Тип: Microsoft.TeamFoundation.Common.Internal.NativeMethods.CreationDisposition
- dwFlagsAndAttributes
Тип: Microsoft.TeamFoundation.Common.Internal.NativeMethods.FileAttributes
- hTemplateFile
Тип: System.IntPtr
Возвращаемое значение
Тип: Microsoft.Win32.SafeHandles.SafeFileHandle
См. также
Ссылки
Microsoft.TeamFoundation.Common.Internal - пространство имен