_AppDomain.SetPrincipalPolicy(PrincipalPolicy) 方法

定义

为 COM 对象提供对 SetPrincipalPolicy(PrincipalPolicy) 方法的与版本无关的访问。Provides COM objects with version-independent access to the SetPrincipalPolicy(PrincipalPolicy) method.

public:
 void SetPrincipalPolicy(System::Security::Principal::PrincipalPolicy policy);
public void SetPrincipalPolicy (System.Security.Principal.PrincipalPolicy policy);
abstract member SetPrincipalPolicy : System.Security.Principal.PrincipalPolicy -> unit
Public Sub SetPrincipalPolicy (policy As PrincipalPolicy)

参数

policy
PrincipalPolicy

PrincipalPolicy 值之一,指定要附加到线程的主体对象类型。One of the PrincipalPolicy values that specifies the type of the principal object to attach to threads.

注解

请参见AppDomain.SetPrincipalPolicy方法。See the AppDomain.SetPrincipalPolicy method.

适用于