UrlAttribute::GetPropertiesForNewContext Method (IConstructionCallMessage^)

 

Forces the creation of the context and the server object inside the context at the specified URL.

Namespace:   System.Runtime.Remoting.Activation
Assembly:  mscorlib (in mscorlib.dll)

public:
[SecurityCriticalAttribute]
[ComVisibleAttribute(true)]
virtual void GetPropertiesForNewContext(
	IConstructionCallMessage^ ctorMsg
) override

Parameters

ctorMsg
Type: System.Runtime.Remoting.Activation::IConstructionCallMessage^

The IConstructionCallMessage of the server object to create.

Exception Condition
SecurityException

The immediate caller does not have infrastructure permission.

GetPropertiesForNewContext does not contribute any properties to the new context because it is used by the remoting infrastructure to force the creation of the context and the server object inside the context at the specified URL.

SecurityPermission

For operating with infrastructure code. Associated enumeration: SecurityPermissionFlag::Infrastructure

.NET Framework
Available since 1.1
Return to top
Show: