DynamicRequest Class

This is a Library topic for RemObjects SDK for .NET
This page is generated from external data, please do not update
Namespaces — Interfaces — Classes — Enums — Implements
Contents |
Overview
Used to represent a request, or method call, that can be made to a service on a RemObjects SDK Server.
In contrast to making calls in code that use the services imported interfaces, Dynamic Request allows you to make calls to services whose exact definition is not known at compile time.
The service to be called into is identified by the referenced RemoteService component, while the call itself is defined through the MethodName and Parameters properties.
Once a call has been set up and the required parameter values have been specified, the call can be executed by calling the MakeRequest method.
This component is a part of Data Abstract, however the namespace is called RemObjects.SDK. It is contained in DataAbstract.dll.
Location
- Assembly: RemObjects.SDK.dll
- Namespace: RemObjects.SDK
- Ancestry: System.ComponentModel.Component | DynamicRequest | Descendants
Properties
| MethodName |
|---|
|
Specifies the name of the method to call. Note: If the RemoteService property is assigned and the server is available at design time, you can select the method name from a list of available methods in the Property Browser's drop down box. When doing this, the Parameters collection will automatically be populated.
|
| Parameters |
|
Defines the parameters that get passed into and out of the method call. For your call to succeed, these exactly have to match the parameters defined for your method; you can use the UpdateParamsFromRodl and UpdateParamsFromRodlOperation methods to populate the parameters automatically. Once the parameters are defined, you can set their values using ParameterByName("Name").Value before you make your call. Note: If the RemoteService property is assigned and the server is available at design time, you can select the method name from a list of available methods in the Property Browser's drop down box. When doing this, the Parameters collection will automatically be populated.
|
| RemoteService |
|
References the RemoteService component that defines the service to call.
|
| ResultParameter |
|
|
Instance Methods
| constructor () |
|---|
|
|
| constructor (IContainer) |
|
|
| constructor (String, RemoteService) |
|
|
| constructor (String, RemoteService, array of DynamicRequestParameter) |
|
|
| constructor (String, RemoteService, DynamicRequestParameterCollection) |
|
|
| constructor (String, RemoteService, IList<DynamicRequestParameter>) |
|
|
| BeginMakeRequest |
|
|
| EndMakeRequest |
|
|
| MakeRequest |
|
Performs the actual request to the remote service.
|
| ParameterByName |
|
Returns the DynamicRequestParameter of a given name. You can use this method to conveniently populate all parameters with their proper values without relying on their ordering, as shown in the example below.
|
| ReadParameter protected |
|
|
| SetupDefaultRequest protected |
|
|
| UpdateParamsFromRodl |
|
Retrieves the RODL file from the server, locates the service and method and populates the Parameters collection with the appropriate parameters needed for the method call. Any parameters or values defined prior to calling UpdateParamsFromRodl will be lost.
|
| UpdateParamsFromRodlOperation |
|
Populates the Parameters collection with the appropriate parameters needed for the method call. In contrast to UpdateParamsFromRodl, it will not try to obtain the RODL file from the server, but work with the passed RodlOperation instance. Any parameters or values defined prior to calling UpdateParamsFromRodlOperation will be lost.
|
| Validate protected |
|
|
| WriteParameter protected |
|
|
Descendants
See Also
- Lists
- RemObjects SDK for .NET: Namespaces — Interfaces — Classes — Enums — Implements
- RemObjects SDK shared: Data Types – File Types
- other editions
- RemObjects SDK for Xcode: Protocols — Classes — Enums — Aliases — Implements
- RemObjects SDK for Delphi: Interfaces — Classes — Aliases — Implements
- RemObjects SDK for Java: Namespaces — Interfaces — Classes — Enums — Implements
- RemObjects SDK for JavaScript: Objects

Product: RemObjects SDK
Available Editions: RemObjects SDK for .NET, Xcode, Delphi, Java and JavaScript