RealProxy::AttachServer Method (MarshalByRefObject^)

 

Attaches the current proxy instance to the specified remote MarshalByRefObject.

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

protected:
[SecurityCriticalAttribute]
void AttachServer(
	MarshalByRefObject^ s
)

Parameters

s
Type: System::MarshalByRefObject^

The MarshalByRefObject that the current proxy instance represents.

Exception Condition
SecurityException

The immediate caller does not have UnmanagedCode permission.

SecurityPermission

For the ability to call unmanaged code. Demand value: SecurityAction::LinkDemand; Permission value: SecurityPermissionFlag::UnmanagedCode

.NET Framework
Available since 1.1
Return to top
Show: