共用方式為


_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 方法。

適用於