UrlAttribute.GetPropertiesForNewContext(IConstructionCallMessage) 方法

定义

强制在指定 URL 处的上下文内创建上下文和服务器对象。

public:
 override void GetPropertiesForNewContext(System::Runtime::Remoting::Activation::IConstructionCallMessage ^ ctorMsg);
public override void GetPropertiesForNewContext (System.Runtime.Remoting.Activation.IConstructionCallMessage ctorMsg);
[System.Runtime.InteropServices.ComVisible(true)]
public override void GetPropertiesForNewContext (System.Runtime.Remoting.Activation.IConstructionCallMessage ctorMsg);
[System.Runtime.InteropServices.ComVisible(true)]
[System.Security.SecurityCritical]
public override void GetPropertiesForNewContext (System.Runtime.Remoting.Activation.IConstructionCallMessage ctorMsg);
override this.GetPropertiesForNewContext : System.Runtime.Remoting.Activation.IConstructionCallMessage -> unit
[<System.Runtime.InteropServices.ComVisible(true)>]
override this.GetPropertiesForNewContext : System.Runtime.Remoting.Activation.IConstructionCallMessage -> unit
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Security.SecurityCritical>]
override this.GetPropertiesForNewContext : System.Runtime.Remoting.Activation.IConstructionCallMessage -> unit
Public Overrides Sub GetPropertiesForNewContext (ctorMsg As IConstructionCallMessage)

参数

ctorMsg
IConstructionCallMessage

要创建的服务器对象的 IConstructionCallMessage

属性

例外

直接调用方没有基础结构权限。

注解

GetPropertiesForNewContext 不向新上下文提供任何属性,因为远程处理基础结构使用它强制在上下文中的指定 URL 中创建上下文和服务器对象。

适用于