語言

IAuthorizeRemotingConnection.IsConnectingIdentityAuthorized(IIdentity) 方法

定義

會取得一個布林值,表示用戶端的使用者身份是否被授權在目前通道上連線。

public:
 bool IsConnectingIdentityAuthorized(System::Security::Principal::IIdentity ^ identity);
public bool IsConnectingIdentityAuthorized(System.Security.Principal.IIdentity identity);
abstract member IsConnectingIdentityAuthorized : System.Security.Principal.IIdentity -> bool
Public Function IsConnectingIdentityAuthorized (identity As IIdentity) As Boolean

參數

identity
IIdentity

那 IIdentity 代表用戶端的使用者身份。

傳回

true若用戶端的使用者身份已授權;否則,。 false

備註

介面的一個實例 IAuthorizeRemotingConnection 會傳遞給 TcpServerChannel(IDictionary, IServerChannelSinkProvider, IAuthorizeRemotingConnection)。 它為所有進入 TcpServerChannel的連線提供單一授權點。 它允許在任何來信被解序列化前,先取得呼叫者的授權,以降低來自不受信任來源的安全威脅。

適用於