_AppDomain.SetPrincipalPolicy(PrincipalPolicy) 方法

定义

为 COM 对象提供对 SetPrincipalPolicy(PrincipalPolicy) 方法的与版本无关的访问。

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 值之一,指定要附加到线程的主体对象类型。

注解

请参见 AppDomain.SetPrincipalPolicy 方法。

适用于