MessageQueue.GetSecurityContext 方法

定義

擷取 MSMQ 在這次呼叫時與目前使用者 (執行緒識別) 產生關聯的安全性內容。Retrieves the security context that MSMQ associates with the current user (thread identity) at the time of this call.

public:
 static System::Messaging::SecurityContext ^ GetSecurityContext();
public static System.Messaging.SecurityContext GetSecurityContext ();
static member GetSecurityContext : unit -> System.Messaging.SecurityContext
Public Shared Function GetSecurityContext () As SecurityContext

傳回

SecurityContext

包含安全性內容的 SecurityContext 物件。A SecurityContext object that contains the security context.

適用於

另請參閱