ToUsernamePassword Method

Converts to a UsernamePasswordCredentials or returns null (Nothing in Visual Basic) if the underlying credential can't be converted

Syntax

public abstract UsernamePasswordCredentials ToUsernamePassword()