Return Value
When IsConfigured is
false
, return null
. Otherwise, when CustomNetworkCredential is true
, return the NetworkCredential. Otherwise, returns the network credentials of the current security context.