My Project  0.10.0
Windows SDK for Facebook
Public Member Functions | Properties | List of all members
winsdkfb::FBResult Class Reference

Container class holding the result of a graph API call - either a JSON object of some type, or an error, depending on the value of the Succeeded property. Note that the instantiation of Object and ErrorInfo are exclusive to each other, only one can be instantiated at a time. More...

#include <FacebookResult.h>

Public Member Functions

 FBResult (Platform::Object^ Object)
 

Properties

bool Succeeded [get]
 
Platform::Object^  Object [get]
 
winsdkfb::FBError^  ErrorInfo [get]
 

Detailed Description

Container class holding the result of a graph API call - either a JSON object of some type, or an error, depending on the value of the Succeeded property. Note that the instantiation of Object and ErrorInfo are exclusive to each other, only one can be instantiated at a time.

Constructor & Destructor Documentation

FBResult::FBResult ( Platform::Object^  Object)

Contructor for FBResult.

Parameters
ObjectAdditional information that FBResult can carry back to the caller. If Object can be cast to FBError the FBResult will be considered unsuccessful, otherwise it will be considered successful.

Property Documentation

winsdkfb:: FBError^ winsdkfb::FBResult::ErrorInfo
get

Error information sent from the operation that created the FBResult.

Platform:: Object^ winsdkfb::FBResult::Object
get

A context dependent object used to send additional data with the FBResult. Object will need to be cast to different types depending on the operation that generated it in order to be used.

bool winsdkfb::FBResult::Succeeded
get

Indicates that the operation associated with the FBResult was successful or not. Use to determine whether the Object or ErrorInfo field should be accessed for more information.


The documentation for this class was generated from the following files: