IntranetZoneCredentialPolicy 构造函数

定义

初始化 IntranetZoneCredentialPolicy 类的新实例。

public:
 IntranetZoneCredentialPolicy();
public IntranetZoneCredentialPolicy ();
Public Sub New ()

示例

下面的代码示例演示如何创建此类的实例。

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

注解

应用程序使用此构造函数创建可用于设置 属性的对象 CredentialPolicy

适用于