'Declaration
<CanBeNullAttribute()> Public Function GetCredentials() As ICredentials
'Usage
Dim instance As NetworkSecurity Dim value As ICredentials value = instance.GetCredentials()
[CanBeNull()] public ICredentials GetCredentials()
[CanBeNull()] public: ICredentials^ GetCredentials();
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.
This method can return null
(Nothing
in Visual Basic).