User Tools

Site Tools


thinkgeo.mapsuite.windowsphonecore.transactionresult

ThinkGeo.MapSuite.WindowsPhoneCore.TransactionResult

Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.

<!– Class –> This class represents the results of a transaction that was processed.

Remarks

This class holds the results of a transaction. It can tell the users the number of succeeded record and the number of failed records. It also has a dictionary that holds the individual reasons that certain records fails by FeatureId. If you are implementing this class it is important that you provide as much information about the transaction results to your users.

Inheritance Hierarchy

Members Summary

Public Constructors

Name Parameters DeclaringType Summary
Public MethodTransactionResult This is the class constructor.
Public MethodTransactionResult Int32, Int32, Dictionary<String, String>, TransactionResultStatus This is the class constructor.

Protected Constructors

Name Parameters DeclaringType Summary

Public Methods

Name Parameters DeclaringType Summary
Public MethodEquals Object Object
Public MethodGetHashCode Object
Public MethodGetType Object
Public MethodToString Object

Protected Methods

Name Parameters DeclaringType Summary
Protected MethodFinalize Object
Protected MethodMemberwiseClone Object

Public Properties

Name Return DeclaringType Summary
Public PropertyFailureReasons Dictionary<String,String> This property gets and sets the dictionary that contains the reasons for failure.
Public PropertyTotalFailureCount Int32 This property gets and sets the total number of records that we committed unsuccessfully.
Public PropertyTotalSuccessCount Int32 This property gets and sets the total number of records that we committed successfully.
Public PropertyTransactionResultStatus TransactionResultStatus This property gets and sets the result status of the transaction.

Protected Properties

Name Return DeclaringType Summary

Public Events

Name Event Arguments DeclaringType Summary

Public Constructors

TransactionResult()

This is the class constructor.

Overloads

This is the default constructor and is typically not used.

Remarks

This is the default constructor and is typically not used.

Parameters

Name Type Description

Go Back

TransactionResult(Int32, Int32, Dictionary<String, String>, TransactionResultStatus)

This is the class constructor.

Overloads

This is the constructor for this class allows you pass in the necessary properties in the class.

Parameters

Name Type Description
totalSuccessCount Int32<!– System.Int32 –>
totalFailureCount Int32<!– System.Int32 –>
failureReasons Dictionary<String,String><!– System.Collections.Generic.Dictionary{System.String,System.String} –>
transactionResultStatus TransactionResultStatus<!– ThinkGeo.MapSuite.WindowsPhoneCore.TransactionResultStatus –>

Go Back

Protected Constructors

Public Methods

Equals(Object)

Return Value

Return Type Description
Boolean<!– System.Boolean –>

Parameters

Name Type Description
obj Object<!– System.Object –>

<!– System.Object –> Go Back

GetHashCode()

Return Value

Return Type Description
Int32<!– System.Int32 –>

Parameters

Name Type Description

<!– System.Object –> Go Back

GetType()

Return Value

Return Type Description
Type<!– System.Type –>

Parameters

Name Type Description

<!– System.Object –> Go Back

ToString()

Return Value

Return Type Description
String<!– System.String –>

Parameters

Name Type Description

<!– System.Object –> Go Back

Protected Methods

Finalize()

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– System.Object –> Go Back

MemberwiseClone()

Return Value

Return Type Description
Object<!– System.Object –>

Parameters

Name Type Description

<!– System.Object –> Go Back

Public Properties

FailureReasons

This property gets and sets the dictionary that contains the reasons for failure.

Remarks

If there are failing records we suggest you add the failure reasons to this dictionary. It is also suggested that you use the FeatureId as the key of the Dictionary.

Return Value

Return Type
Dictionary<String,String><!– System.Collections.Generic.Dictionary{System.String,System.String} –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.TransactionResult –> Go Back

TotalFailureCount

This property gets and sets the total number of records that we committed unsuccessfully.

Return Value

Return Type
Int32<!– System.Int32 –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.TransactionResult –> Go Back

TotalSuccessCount

This property gets and sets the total number of records that we committed successfully.

Return Value

Return Type
Int32<!– System.Int32 –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.TransactionResult –> Go Back

TransactionResultStatus

This property gets and sets the result status of the transaction.

Remarks

This property returns the results of the transaction. If all of the records committed fine then you get a success status. If any of the records fail then you get a failure status though some of the records may have committed.

Return Value

Return Type
TransactionResultStatus<!– ThinkGeo.MapSuite.WindowsPhoneCore.TransactionResultStatus –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.TransactionResult –> Go Back

Protected Properties

Public Events

thinkgeo.mapsuite.windowsphonecore.transactionresult.txt · Last modified: 2017/03/16 21:59 (external edit)