CredentialsProviderHelper.GetNetworkCredential Method
Namespace: Microsoft.VisualStudio.Services.Common
Assembly: Microsoft.VisualStudio.Services.Common (in Microsoft.VisualStudio.Services.Common.dll)
Syntax
'Declaration
Public Shared Function GetNetworkCredential ( _
username As String, _
password As StringBuilder _
) As NetworkCredential
public static NetworkCredential GetNetworkCredential(
string username,
StringBuilder password
)
public:
static NetworkCredential^ GetNetworkCredential(
String^ username,
StringBuilder^ password
)
static member GetNetworkCredential :
username:string *
password:StringBuilder -> NetworkCredential
public static function GetNetworkCredential(
username : String,
password : StringBuilder
) : NetworkCredential
Parameters
- username
Type: System.String
- password
Type: System.Text.StringBuilder
Return Value
Type: System.Net.NetworkCredential
.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.