Trustee Constructor (String, String)

Trustee Constructor (String, String)

Initializes a new instance of the Trustee class of type Unknown, setting the Name and the SystemName properties to the values specified.

Namespace: System.Messaging
Assembly: System.Messaging (in system.messaging.dll)

public Trustee (
	string name,
	string systemName
public Trustee (
	String name, 
	String systemName
public function Trustee (
	name : String, 
	systemName : String



The value to assign to the Name property.


The value to assign to the SystemName property.

Exception typeCondition


The name parameter is a null reference (Nothing in Visual Basic).

Use this overload to set the trustee account and specify that a network computer be used to look up the account. The TrusteeType property is set to Unknown, but you can modify that value before using this instance of Trustee to set permissions.

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

© 2015 Microsoft