TfsConnection.Credentials Property
Gets the credentials for this Team Foundation Server instance.
Namespace: Microsoft.TeamFoundation.Client
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
Syntax
'宣言
Public Property Credentials As ICredentials
Get
Friend Set
public ICredentials Credentials { get; internal set; }
public:
property ICredentials^ Credentials {
ICredentials^ get ();
internal: void set (ICredentials^ value);
}
member Credentials : ICredentials with get, internal set
function get Credentials () : ICredentials
internal function set Credentials (value : ICredentials)
Property Value
Type: System.Net.ICredentials
Returns ICredentials.
Remarks
The credentials object must be either a NetworkCredential or CredentialCache object. This is required by the HttpWebRequest.Credentials property.
The ICredentials interface is implemented by both classes.
.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.