NativeMethods.CredUIPromptForWindowsCredentials 方法
此类型具有 SecurityCriticalAttribute 特性,此特性将其限定为只能由 .NET Framework for Silverlight 类库在内部使用。使用此类型的任何成员的应用程序代码将引发 MethodAccessException。
命名空间: Microsoft.TeamFoundation.Common.Internal
程序集: Microsoft.TeamFoundation.Common(在 Microsoft.TeamFoundation.Common.dll 中)
语法
声明
Public Shared Function CredUIPromptForWindowsCredentials ( _
ByRef pUiInfo As NativeMethods.CREDUI_INFO, _
dwAuthError As Integer, _
ByRef pulAuthPackage As UInteger, _
pvInAuthBuffer As Byte(), _
ulInAuthBufferSize As UInteger, _
<OutAttribute> ByRef ppvOutAuthBuffer As IntPtr, _
<OutAttribute> ByRef pulOutAuthBufferSize As UInteger, _
ByRef pfSave As Boolean, _
dwFlags As Integer _
) As Integer
public static int CredUIPromptForWindowsCredentials(
ref NativeMethods.CREDUI_INFO pUiInfo,
int dwAuthError,
ref uint pulAuthPackage,
byte[] pvInAuthBuffer,
uint ulInAuthBufferSize,
out IntPtr ppvOutAuthBuffer,
out uint pulOutAuthBufferSize,
ref bool pfSave,
int dwFlags
)
参数
- dwAuthError
类型:System.Int32
- pulAuthPackage
类型:System.UInt32%
- pvInAuthBuffer
类型:array<System.Byte[]
- ulInAuthBufferSize
类型:System.UInt32
- ppvOutAuthBuffer
类型:System.IntPtr%
- pulOutAuthBufferSize
类型:System.UInt32%
- pfSave
类型:System.Boolean%
- dwFlags
类型:System.Int32
返回值
类型:System.Int32