 | wclObexOppClientGet(String, Stream) Method |
The function reads the default object with given type from an OBEX
object push server.
Namespace: wclCommunicationAssembly: wclCommunication (in wclCommunication.dll) Version: 8.0.6.0
Syntaxpublic int Get(
string Type,
Stream Stream
)
Public Function Get (
Type As String,
Stream As Stream
) As Integer
public:
int Get(
String^ Type,
Stream^ Stream
)
Parameters
- Type String
-
An object's type.
- Stream Stream
-
An object's data stream.
Return Value
Int32
If the method completed with success the return value is
WCL_E_SUCCESS. Otherwise the method returns one of the
WCL error codes.
Remarks
This function can be used to pull (request) the default business
card (vCard) from a target device. To do that the aType
parameter must be "text/x-vCard" string.
An application must pass a valid Stream object to the method and the
stream object must be valid until OnGetComplete event is
called. An application can destroy the stream object passed as the
Stream parameter only after OnGetComplete event was
called.
During execution of the Get operation the OnProgress event
may be called indicating the operation progress.
See Also