UrlAttribute.GetPropertiesForNewContext Method (IConstructionCallMessage)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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)

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

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: