ProcessModelSection.ComAuthenticationLevel 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,表示 DCOM 安全性的認證層級。
public:
property System::Web::Configuration::ProcessModelComAuthenticationLevel ComAuthenticationLevel { System::Web::Configuration::ProcessModelComAuthenticationLevel get(); void set(System::Web::Configuration::ProcessModelComAuthenticationLevel value); };
[System.Configuration.ConfigurationProperty("comAuthenticationLevel", DefaultValue=System.Web.Configuration.ProcessModelComAuthenticationLevel.Connect)]
public System.Web.Configuration.ProcessModelComAuthenticationLevel ComAuthenticationLevel { get; set; }
[<System.Configuration.ConfigurationProperty("comAuthenticationLevel", DefaultValue=System.Web.Configuration.ProcessModelComAuthenticationLevel.Connect)>]
member this.ComAuthenticationLevel : System.Web.Configuration.ProcessModelComAuthenticationLevel with get, set
Public Property ComAuthenticationLevel As ProcessModelComAuthenticationLevel
屬性值
這是其中一項 ProcessModelComAuthenticationLevel 價值。 預設值為 Connect。
- 屬性
範例
以下程式碼範例說明如何存取該 ComAuthenticationLevel 物業。
// Get the current ComAuthenticationLevel property value.
ProcessModelComAuthenticationLevel comAuthLevel =
processModelSection.ComAuthenticationLevel;
// Set the ComAuthenticationLevel property to
// ProcessModelComAuthenticationLevel.Call.
processModelSection.ComAuthenticationLevel =
ProcessModelComAuthenticationLevel.Call;
' Get the current ComAuthenticationLevel property value.
Dim comAuthLevel _
As ProcessModelComAuthenticationLevel = _
processModelSection.ComAuthenticationLevel
' Set the ComAuthenticationLevel property to
' ProcessModelComAuthenticationLevel.Call.
processModelSection.ComAuthenticationLevel = _
ProcessModelComAuthenticationLevel.Call
備註
當此屬性值設為 Default時,DCOM 會利用其正常的安全協商演算法決定認證層級。 根據 Machine.config 檔案中指定的,該屬性的預設值為 Connect。 在這種情況下,DCOM 只有在用戶端與伺服器建立關係時才會驗證其憑證。