共用方式為


WebSocketContext.User 屬性

定義

用來取得 WebSocket 用戶端之識別、驗證資訊及安全性角色的物件。

public:
 abstract property System::Security::Principal::IPrincipal ^ User { System::Security::Principal::IPrincipal ^ get(); };
public abstract System.Security.Principal.IPrincipal? User { get; }
public abstract System.Security.Principal.IPrincipal User { get; }
member this.User : System.Security.Principal.IPrincipal
Public MustOverride ReadOnly Property User As IPrincipal

屬性值

傳回 IPrincipal

適用於