NAnt SDK Documentation - v0.92 |

# Credential.GetCredential Method

Returns a NetworkCredential instance representing the current Credential.

[Visual Basic]
Public Function GetCredential() As ICredentials
[C#]
public ICredentials GetCredential();

#### Return Value

A NetworkCredential instance representing the current Credential, or a null reference (Nothing in Visual Basic) if the credentials should not be used to provide authentication information to the external resource.

#### See Also

Credential Class | NAnt.Core.Types Namespace