Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Initializes a new VssBasicCredential instance with the specified user name and password.
Namespace:  Microsoft.VisualStudio.Services.Client
Assembly:  Microsoft.VisualStudio.Services.Client (in Microsoft.VisualStudio.Services.Client.dll)
Syntax
'Declaration
Public Sub New ( _
    userName As String, _
    password As String _
)
public VssBasicCredential(
    string userName,
    string password
)
public:
VssBasicCredential(
    String^ userName, 
    String^ password
)
new : 
        userName:string * 
        password:string -> VssBasicCredential
public function VssBasicCredential(
    userName : String, 
    password : String
)
Parameters
- userName 
 Type: System.String- The user name 
- password 
 Type: System.String- The password 
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.