共用方式為


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 屬性的物件。

適用於