SetPrincipalPolicy Method

_AppDomain.SetPrincipalPolicy Method

Specifies how principal and identity objects should be attached to a thread if the thread attempts to bind to a principal while executing in this application domain.

[Visual Basic]
Sub SetPrincipalPolicy( _
   ByVal policy As PrincipalPolicy _
)
[C#]
void SetPrincipalPolicy(
   PrincipalPolicy policy
);
[C++]
void SetPrincipalPolicy(
   PrincipalPolicy policy
);
[JScript]
function SetPrincipalPolicy(
   policy : PrincipalPolicy
);

Parameters

policy
The type of the principal object to be attached to threads.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

_AppDomain Interface | _AppDomain Members | System Namespace

Show:
© 2016 Microsoft