この型は SecurityCriticalAttribute 属性を持っているため、使用は .NET Framework for 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