NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

AppDomain.SetThreadPrincipal

Set the default principal object to be attached to threads if they attempt to bind to a principal while executing in this application domain.

[Visual Basic]
Public Sub SetThreadPrincipal( _
   ByVal principal As IPrincipal _
)
[C#]
public void SetThreadPrincipal(
   IPrincipal principal
);
[C++]
public: void SetThreadPrincipal(
   IPrincipal* principal
);
[JScript]
public function SetThreadPrincipal(
   principal : IPrincipal
);

Parameters

principal
The principal object to be attached to threads.

Exceptions

Exception Type Condition
PolicyException if the principal has been set previously.

See Also

AppDomain Class | AppDomain Members | System Namespace