RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXSCustomDateTime Class

TXSCustomDateTime is the base class for classes that represent both date and time values for an invokable interface.

Pascal
TXSCustomDateTime = class(TRemotableXS);
C++
class TXSCustomDateTime : public TRemotableXS;

Use TXSCustomDateTime as a base class when defining a class to represent a type that includes both date and time portions and that represents a scalar value in a WSDL document. When creating a TXSCustomDateTime descendant, override the XSToNative and NativeToXS methods to indicate how the value of the class can be converted to and from the string representation that is used to encode the value for transport. 

On server applications, instances of TXSCustomDateTime descendants that are input parameters on an invokable interface are automatically created when the method call is unmarshaled and automatically freed after any output parameters or return value are marshaled so that they can be sent to the client. When a TXSCustomDateTime descendant is created in a method that was called remotely using an invokable interface, the instance is automatically freed after the value of the TRemotable descendant is marshaled for transport back to the client application. 

The caller of an invokable interface (client) is responsible for creating any TXSCustomDateTime instances that it passes as input parameters, and for freeing any TXSCustomDateTime instances it creates or that are returned as output parameters or method results. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!