ImpersonationLevel Enum

Definition

Describes the impersonation level to be used to connect to WMI.

public enum ImpersonationLevel
Inheritance
ImpersonationLevel

Fields

Name Value Description
Default 0

Default impersonation.

Anonymous 1

Anonymous COM impersonation level that hides the identity of the caller. Calls to WMI may fail with this impersonation level.

Identify 2

Identify-level COM impersonation level that allows objects to query the credentials of the caller. Calls to WMI may fail with this impersonation level.

Impersonate 3

Impersonate-level COM impersonation level that allows objects to use the credentials of the caller. This is the recommended impersonation level for WMI calls.

Delegate 4

Delegate-level COM impersonation level that allows objects to permit other objects to use the credentials of the caller. This level, which will work with WMI calls but may constitute an unnecessary security risk, is supported only under Windows 2000.

Applies to

Produto Versões
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)