Share via


NetworkCredential Constructor (String, String, AuthenticationType)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Initializes a new instance of the NetworkCredential class, with the specified user name, password, and authentication type.

Namespace:  System.Net
Assembly:  System.Http (in System.Http.dll)

Syntax

'Declaration
Public Sub New ( _
    userName As String, _
    password As String, _
    authenticationType As AuthenticationType _
)
public NetworkCredential(
    string userName,
    string password,
    AuthenticationType authenticationType
)
public:
NetworkCredential(
    String^ userName, 
    String^ password, 
    AuthenticationType authenticationType
)
new : 
        userName:string * 
        password:string * 
        authenticationType:AuthenticationType -> NetworkCredential
public function NetworkCredential(
    userName : String, 
    password : String, 
    authenticationType : AuthenticationType
)

Parameters

.NET Framework Security

See Also

Reference

NetworkCredential Class

NetworkCredential Overload

System.Net Namespace