NativeMethods.CredUIPromptForCredentials, méthode
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 CredUIPromptForCredentials ( _
ByRef pUiInfo As NativeMethods.CREDUI_INFO, _
pszTargetName As String, _
reserved As IntPtr, _
dwAuthError As Integer, _
pszUserName As StringBuilder, _
ulUserNameMaxChars As UInteger, _
pszPassword As StringBuilder, _
ulPasswordMaxChars As UInteger, _
ByRef pfSave As Boolean, _
dwFlags As Integer _
) As Integer
public static int CredUIPromptForCredentials(
ref NativeMethods.CREDUI_INFO pUiInfo,
string pszTargetName,
IntPtr reserved,
int dwAuthError,
StringBuilder pszUserName,
uint ulUserNameMaxChars,
StringBuilder pszPassword,
uint ulPasswordMaxChars,
ref bool pfSave,
int dwFlags
)
Paramètres
- pszTargetName
Type : System.String
- reserved
Type : System.IntPtr
- dwAuthError
Type : System.Int32
- pszUserName
Type : System.Text.StringBuilder
- ulUserNameMaxChars
Type : System.UInt32
- pszPassword
Type : System.Text.StringBuilder
- ulPasswordMaxChars
Type : System.UInt32
- pfSave
Type : System.Boolean%
- dwFlags
Type : System.Int32
Valeur de retour
Type : System.Int32