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
- userName
Type: System. . :: . .String
The user name.
- password
Type: System. . :: . .String
The password.
- authenticationType
Type: System.Net. . :: . .AuthenticationType
The authentication type, such as basic or Windows Live.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.