RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRemotableTypeRegistry.ClassToURI Method (TClass, WideString, WideString)

Returns the namespace URI associated with a specified remotable class.

Pascal
function ClassToURI(AClass: TClass; var URI: WideString; var Name: WideString; var IsScalar: Boolean; tryToRegister: Boolean = True): Boolean; overload;
function ClassToURI(AClass: TClass; var URI: WideString; var Name: WideString): Boolean; overload;
C++
__fastcall Boolean ClassToURI(TClass AClass, BSTR URI, BSTR Name, Boolean IsScalar, Boolean tryToRegister = True);
__fastcall Boolean ClassToURI(TClass AClass, BSTR URI, BSTR Name);

ClassToURI looks up a registered remotable class and retrieves its namespace URI and typename. The association of the class and its namespace URI and typename is established when you call RegisterXSClass to register the remotable class. 

AClass is a class reference for the remotable class you want to look up. 

URI returns the namespace URI that is associated with the class. 

Name returns the registered name of the type the class represents. 

IsScalar indicates whether the class corresponds to a scalar type in a WSDL document. 

tryToRegister indicates whether the remotable type registry should auto-register the class that AClass specifies if it is not already registered. This parameter is only used if the AutoRegisterNativeTypes property is true. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!