'Declaration<CanBeNullAttribute()> Public Function GetCredentials() As ICredentials
'UsageDim 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.