====== ThinkGeo.MapSuite.WindowsPhoneCore.TransactionBuffer ====== {{section>upgrade_map_suite_to_10.0}} This class represents the holding place for transactions that have not yet been committed. ===== Inheritance Hierarchy ===== *System.Object **[[ThinkGeo.MapSuite.WindowsPhoneCore.TransactionBuffer]] ===== Members Summary ===== ==== Public Constructors ==== ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | {{wiki:PublicMethod.gif|Public Method}}[[#TransactionBuffer()|TransactionBuffer]] | | | This is the class constructor. | | {{wiki:PublicMethod.gif|Public Method}}[[#TransactionBuffer(Dictionary, Collection, Dictionary)|TransactionBuffer]] | Dictionary, Collection, Dictionary | | This is the class constructor. | ==== Protected Constructors ==== ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ ==== Public Methods ==== ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | {{wiki:PublicMethod.gif|Public Method}}[[#AddFeature(BaseShape, Dictionary)|AddFeature]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]], Dictionary | | This method allows you to add a shape into the buffer. | | {{wiki:PublicMethod.gif|Public Method}}[[#AddFeature(Feature)|AddFeature]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | | This method allows you to add InternalFeatures to the transaction buffer. | | {{wiki:PublicMethod.gif|Public Method}}[[#AddFeature(BaseShape)|AddFeature]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | | This method allows you to add a shape into the buffer. | | {{wiki:PublicMethod.gif|Public Method}}[[#Clear()|Clear]] | | | This method will clear all the items in AddBuffer, EditBuffer and DeleteBuffer. | | {{wiki:PublicMethod.gif|Public Method}}[[#DeleteFeature(String)|DeleteFeature]] | String | | This method allows you to add a placeholder to represent a Feature to be deleted. | | {{wiki:PublicMethod.gif|Public Method}}[[#EditFeature(BaseShape, Dictionary)|EditFeature]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]], Dictionary | | This method allows you to add a shape to be updated. | | {{wiki:PublicMethod.gif|Public Method}}[[#EditFeature(BaseShape)|EditFeature]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | | This method allows you to add a shape to be updated. | | {{wiki:PublicMethod.gif|Public Method}}[[#EditFeature(Feature)|EditFeature]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | | This method allows you to add a Feature to be updated. | | {{wiki:PublicMethod.gif|Public Method}}[[#Equals(Object)|Equals]] | Object | Object | | | {{wiki:PublicMethod.gif|Public Method}}[[#GetHashCode()|GetHashCode]] | | Object | | | {{wiki:PublicMethod.gif|Public Method}}[[#GetType()|GetType]] | | Object | | | {{wiki:PublicMethod.gif|Public Method}}[[#ToString()|ToString]] | | Object | | ==== Protected Methods ==== ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | {{wiki:ProtectedMethod.gif|Protected Method}}[[#Finalize()|Finalize]] | | Object | | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#MemberwiseClone()|MemberwiseClone]] | | Object | | ==== Public Properties ==== ^ Name ^ Return ^ DeclaringType ^ Summary ^ | {{wiki:PublicProperty.gif|Public Property}}[[#AddBuffer|AddBuffer]] | Dictionary | | This property gets the dictionary buffer that holds InternalFeatures to be added. | | {{wiki:PublicProperty.gif|Public Property}}[[#DeleteBuffer|DeleteBuffer]] | Collection | | This property gets the dictionary buffer that holds InternalFeatures to be deleted. | | {{wiki:PublicProperty.gif|Public Property}}[[#EditBuffer|EditBuffer]] | Dictionary | | This property gets the dictionary buffer that holds InternalFeatures to be updated. | ==== Protected Properties ==== ^ Name ^ Return ^ DeclaringType ^ Summary ^ ==== Public Events ==== ^ Name ^ Event Arguments ^ DeclaringType ^ Summary ^ ===== Public Constructors ===== ==== TransactionBuffer() ==== 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 ^ [[#Public Constructors|Go Back]] ==== TransactionBuffer(Dictionary, Collection, Dictionary) ==== 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 ^ | addBuffer | Dictionary | | | deleteBuffer | Collection | | | editBuffer | Dictionary | | [[#Public Constructors|Go Back]] ===== Protected Constructors ===== ===== Public Methods ===== ==== AddFeature(BaseShape, Dictionary) ==== This method allows you to add a shape into the buffer. === Return Value === ^ Return Type ^ Description ^ | Void | | === Parameters === ^ Name ^ Type ^ Description ^ | baseShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This parameter represents the shape to be added. | | columnValues | Dictionary | This parameter represents the feature value to be added. | [[#Public Methods|Go Back]] ==== AddFeature(Feature) ==== This method allows you to add InternalFeatures to the transaction buffer. === Return Value === ^ Return Type ^ Description ^ | Void | | === Parameters === ^ Name ^ Type ^ Description ^ | feature | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | This parameter represents the Feature you are adding to the transaction buffer. | [[#Public Methods|Go Back]] ==== AddFeature(BaseShape) ==== This method allows you to add a shape into the buffer. === Return Value === ^ Return Type ^ Description ^ | Void | | === Parameters === ^ Name ^ Type ^ Description ^ | baseShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This parameter represents the shape to be added. | [[#Public Methods|Go Back]] ==== Clear() ==== This method will clear all the items in AddBuffer, EditBuffer and DeleteBuffer. === Remarks === This method will clear all the items in AddBuffer, EditBuffer and DeleteBuffer. === Return Value === ^ Return Type ^ Description ^ | Void | | === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Methods|Go Back]] ==== DeleteFeature(String) ==== This method allows you to add a placeholder to represent a Feature to be deleted. === Remarks === This does not remove a feature from the TransactionBuffer but rather it add a "to be deleted record". In this way when the TransactionBuffer if processed we know what records need to be deleted. === Return Value === ^ Return Type ^ Description ^ | Void | | === Parameters === ^ Name ^ Type ^ Description ^ | featureId | String | This parameter represents the unique Id for the specific Feature being passed in. | [[#Public Methods|Go Back]] ==== EditFeature(BaseShape, Dictionary) ==== This method allows you to add a shape to be updated. === Return Value === ^ Return Type ^ Description ^ | Void | | === Parameters === ^ Name ^ Type ^ Description ^ | baseShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This parameter represents the shape to be updated. The shape ID should be the same as the feature you are going to update. | | columnValues | Dictionary | This parameter represents the feature value to be updated. The shape ID should be the same as the feature you are going to update. | [[#Public Methods|Go Back]] ==== EditFeature(BaseShape) ==== This method allows you to add a shape to be updated. === Return Value === ^ Return Type ^ Description ^ | Void | | === Parameters === ^ Name ^ Type ^ Description ^ | baseShape | [[ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape|BaseShape]] | This parameter represents the shape to be updated. The shape ID should be the same as the feature you are going to update. | [[#Public Methods|Go Back]] ==== EditFeature(Feature) ==== This method allows you to add a Feature to be updated. === Return Value === ^ Return Type ^ Description ^ | Void | | === Parameters === ^ Name ^ Type ^ Description ^ | feature | [[ThinkGeo.MapSuite.WindowsPhoneCore.Feature|Feature]] | This parameter represents the Feature to be updated. | [[#Public Methods|Go Back]] ==== Equals(Object) ==== === Return Value === ^ Return Type ^ Description ^ | Boolean | | === Parameters === ^ Name ^ Type ^ Description ^ | obj | Object | | [[#Public Methods|Go Back]] ==== GetHashCode() ==== === Return Value === ^ Return Type ^ Description ^ | Int32 | | === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Methods|Go Back]] ==== GetType() ==== === Return Value === ^ Return Type ^ Description ^ | Type | | === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Methods|Go Back]] ==== ToString() ==== === Return Value === ^ Return Type ^ Description ^ | String | | === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Methods|Go Back]] ===== Protected Methods ===== ==== Finalize() ==== === Return Value === ^ Return Type ^ Description ^ | Void | | === Parameters === ^ Name ^ Type ^ Description ^ [[#Protected Methods|Go Back]] ==== MemberwiseClone() ==== === Return Value === ^ Return Type ^ Description ^ | Object | | === Parameters === ^ Name ^ Type ^ Description ^ [[#Protected Methods|Go Back]] ===== Public Properties ===== ==== AddBuffer ==== This property gets the dictionary buffer that holds InternalFeatures to be added. === Remarks === It is recommended that you use this dictionary for reviewing and not for adding new items. The reason is that the Add, Delete and Edit methods to various validation checks. For example if you call the DeleteFeature twice it will handle the case that you really only want to delete the record once. Another example is if you edit a record twice it will replace the existing edit with the new one. === Return Value === ^ Return Type ^ | Dictionary | [[#Public Properties|Go Back]] ==== DeleteBuffer ==== This property gets the dictionary buffer that holds InternalFeatures to be deleted. === Remarks === It is recommended that you use this dictionary for reviewing and not for adding new items. The reason is that the Add, Delete and Edit methods to various validation checks. For example if you call the DeleteFeature twice it will handle the case that you really only want to delete the record once. Another example is if you edit a record twice it will replace the existing edit with the new one. === Return Value === ^ Return Type ^ | Collection | [[#Public Properties|Go Back]] ==== EditBuffer ==== This property gets the dictionary buffer that holds InternalFeatures to be updated. === Remarks === It is recommended that you use this dictionary for reviewing and not for adding new items. The reason is that the Add, Delete and Edit methods to various validation checks. For example if you call the DeleteFeature twice it will handle the case that you really only want to delete the record once. Another example is if you edit a record twice it will replace the existing edit with the new one. === Return Value === ^ Return Type ^ | Dictionary | [[#Public Properties|Go Back]] ===== Protected Properties ===== ===== Public Events ===== __NOTOC__ [[Category:WindowsPhoneMapSuiteCore]] [[Category:ThinkGeo.MapSuite.WindowsPhoneCore]] [[Category:UpdateDocumentation]]