Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Trustee Class

Specifies a user account, group account, or logon session to which an access control entry applies.

For a list of all members of this type, see Trustee Members.

System.Object
   System.Messaging.Trustee

[Visual Basic]
Public Class Trustee
[C#]
public class Trustee
[C++]
public __gc class Trustee
[JScript]
public class Trustee

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

The trustee is the entity to whom you are granting or denying access rights when you create an access control entry. Set the TrusteeType member (either directly or using the Trustee constructor) to specify whether the trustee is a user, computer, or other type. If you do not specify the trustee type before setting permissions for the trustee, the type defaults to Unknown.

You must specify a value for the Name property before using the Trustee to set permissions. The Name contains the name of the user, group, or computer account to which the new access rights will be assigned. Optionally, you can set the SystemName property to identify the name of the system on which the trustee account is looked up to resolve the name's security identifier. If you do not specify a value for SystemName, the local computer looks up the account name.

Requirements

Namespace: System.Messaging

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

Assembly: System.Messaging (in System.Messaging.dll)

See Also

Trustee Members | System.Messaging Namespace | TrusteeType | MessageQueueAccessControlEntry | MessageQueue.SetPermissions

Show:
© 2015 Microsoft