This documentation is archived and is not being maintained.
RemotingConfiguration::GetRegisteredActivatedServiceTypes Method
Visual Studio 2010
Retrieves an array of object types registered on the service end that can be activated on request from a client.
Assembly: mscorlib (in mscorlib.dll)
[SecurityPermissionAttribute(SecurityAction::Demand, Flags = SecurityPermissionFlag::RemotingConfiguration)] public: static array<ActivatedServiceTypeEntry^>^ GetRegisteredActivatedServiceTypes()
Return Value
Type: array<System.Runtime.Remoting::ActivatedServiceTypeEntry>An array of object types registered on the service end that can be activated on request from a client.
| Exception | Condition |
|---|---|
| SecurityException | At least one of the callers higher in the callstack does not have permission to configure remoting types and channels. |
For a detailed description of client-activated objects, see [<topic://cpconClientActivation>].
// Check whether the 'MyServerImpl' object is allowed for // activation or not. if ( RemotingConfiguration::IsActivationAllowed( MyServerImpl::typeid ) ) { // Get the registered activated service types . array<ActivatedServiceTypeEntry^>^myActivatedServiceEntries = RemotingConfiguration::GetRegisteredActivatedServiceTypes(); Console::WriteLine( "The Length of the registered activated service type array is {0}", myActivatedServiceEntries->Length ); Console::WriteLine( "The Object type is:{0}", myActivatedServiceEntries[ 0 ]->ObjectType ); }
- SecurityPermission
for configuration of the remoting infrastructure. Demand value: SecurityAction::Demand; Permission value: SecurityPermissionFlag::RemotingConfiguration
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: