ProcessModelComAuthenticationLevel 列舉

定義

指定 DCOM 安全性的驗證層級。

public enum class ProcessModelComAuthenticationLevel
public enum ProcessModelComAuthenticationLevel
type ProcessModelComAuthenticationLevel = 
Public Enum ProcessModelComAuthenticationLevel
繼承
ProcessModelComAuthenticationLevel

欄位

Call 1

指定當伺服器在每個遠端程序呼叫開始時收到要求時讓 DCOM 驗證用戶端的認證。

Connect 2

指定只有當用戶端建立與伺服器之間的關聯性時才讓 DCOM 驗證用戶端的認證。 這是預設值。

Default 3

指定 DCOM 使用其正常安全性交涉演算法來決定驗證層級。

None 0

不指定驗證。 這個欄位為常數。

Pkt 4

指定 DCOM 驗證收到的所有資料來自預期的用戶端。 資料包傳輸一律會使用 Pkt 驗證。

PktIntegrity 5

指定 DCOM 驗證並確認用戶端與伺服器之間傳輸的資料皆未經修改。

PktPrivacy 6

指定 DCOM 驗證所有先前層級並加密每個遠端程序呼叫的引數值。

範例

下列範例示範如何取得目前的 ProcessModelSection.ComAuthenticationLevel 屬性值,然後將其設定為 Call


// 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

備註

ProcessModelComAuthenticationLevel 定義設定 ProcessModelSection.ComAuthenticationLevel 屬性時要使用的值。

預設為 Connect

注意

只有在您只) IIS 6 上使用 ASP.NET 進程模型 (Internet Information Services [IIS] 5.n 或相容模式時,設定 ProcessModelComAuthenticationLevel 才會相關。

適用於

另請參閱