PrincipalPolicy Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies how principal and identity objects should be created for an application domain. The default is UnauthenticatedPrincipal
.
public enum class PrincipalPolicy
public enum PrincipalPolicy
[System.Serializable]
public enum PrincipalPolicy
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public enum PrincipalPolicy
type PrincipalPolicy =
[<System.Serializable>]
type PrincipalPolicy =
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type PrincipalPolicy =
Public Enum PrincipalPolicy
- Inheritance
- Attributes
Fields
NoPrincipal | 1 | No principal or identity objects should be created. |
UnauthenticatedPrincipal | 0 | Principal and identity objects for the unauthenticated entity should be created. An unauthenticated entity has Name set to the empty string ("") and IsAuthenticated set to |
WindowsPrincipal | 2 | Principal and identity objects that reflect the operating system token associated with the current execution thread should be created, and the associated operating system groups should be mapped into roles. |
Remarks
For performance reasons, the default principal and identity objects are not created until they are needed. If a principal is explicitly added to the current thread, a default principal is not created and the principal policy setting is ignored.
A trusted host can override the default principal policy by specifying another of these values using the SetPrincipalPolicy method of an AppDomain.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기