Export (0) Print
Expand All

IntranetZoneCredentialPolicy Constructor

Initializes a new instance of the IntranetZoneCredentialPolicy class.

Namespace:  Microsoft.Win32
Assembly:  System (in System.dll)

public IntranetZoneCredentialPolicy()

Applications use this constructor to create objects that can be used to set the CredentialPolicy property.

The following code example demonstrates creating an instance of this class.

 public static void UseIntranetCredentialPolicy()
{
    IntranetZoneCredentialPolicy  policy = new IntranetZoneCredentialPolicy();
    AuthenticationManager.CredentialPolicy = policy;
}

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft