System.Messaging Reference (Document! X Sample)
GetSecurityContext Method



System.Messaging Namespace > MessageQueue Class : GetSecurityContext Method
Retrieves the security context that MSMQ associates with the current user (thread identity) at the time of this call.
Syntax
'Declaration
 
Public Shared Function GetSecurityContext() As SecurityContext
'Usage
 
Dim value As SecurityContext
 
value = MessageQueue.GetSecurityContext()
public static SecurityContext GetSecurityContext()
public:
static SecurityContext^ GetSecurityContext(); 

Return Value

A SecurityContext object that contains the security context.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

MessageQueue Class
MessageQueue Members