語言

InternalRemotingServices.SetServerIdentity(MethodCall, Object) 方法

定義

重要

此 API 不符合 CLS 規範。

為用戶端對伺服器的每次方法呼叫設定遠端伺服器物件的內部識別資訊。

public:
 static void SetServerIdentity(System::Runtime::Remoting::Messaging::MethodCall ^ m, System::Object ^ srvID);
[System.CLSCompliant(false)]
public static void SetServerIdentity(System.Runtime.Remoting.Messaging.MethodCall m, object srvID);
[System.CLSCompliant(false)]
[System.Security.SecurityCritical]
public static void SetServerIdentity(System.Runtime.Remoting.Messaging.MethodCall m, object srvID);
[<System.CLSCompliant(false)>]
static member SetServerIdentity : System.Runtime.Remoting.Messaging.MethodCall * obj -> unit
[<System.CLSCompliant(false)>]
[<System.Security.SecurityCritical>]
static member SetServerIdentity : System.Runtime.Remoting.Messaging.MethodCall * obj -> unit
Public Shared Sub SetServerIdentity (m As MethodCall, srvID As Object)

參數

m
MethodCall

A MethodCall 代表對遠端物件的方法呼叫。

srvID
Object

遠端伺服器物件的內部識別資訊。

屬性

備註

你不需要呼叫 static 該 InternalRemotingServices 類別的方法。

適用於