Delegate ServicePreferenceMappings.PreferenceMappingInfo.IndividualEncoder
Custom encoding from preference string value to stored value
Assembly: SoDataBase.dll
Syntax
public delegate string IndividualEncoder(string key, string currentField, string newPreference);
Parameters
Type |
Name |
Description |
System.String |
key |
Preference key
|
System.String |
currentField |
The complete current stored value
|
System.String |
newPreference |
The new value for the preference key, which might be a fragment of the complete stored value
|
Returns
Type |
Description |
System.String |
|
Constructors
IndividualEncoder(Object, IntPtr)
Declaration
public IndividualEncoder(object object, IntPtr method)
Parameters
Type |
Name |
Description |
System.Object |
object |
|
System.IntPtr |
method |
|
Methods
BeginInvoke(String, String, String, AsyncCallback, Object)
Declaration
public virtual IAsyncResult BeginInvoke(string key, string currentField, string newPreference, AsyncCallback callback, object object)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.String |
currentField |
|
System.String |
newPreference |
|
AsyncCallback |
callback |
|
System.Object |
object |
|
Returns
Type |
Description |
System.IAsyncResult |
|
EndInvoke(IAsyncResult)
Declaration
public virtual string EndInvoke(IAsyncResult result)
Parameters
Type |
Name |
Description |
System.IAsyncResult |
result |
|
Returns
Type |
Description |
System.String |
|
Invoke(String, String, String)
Declaration
public virtual string Invoke(string key, string currentField, string newPreference)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.String |
currentField |
|
System.String |
newPreference |
|
Returns
Type |
Description |
System.String |
|
Extension Methods
EnumUtil.MapEnums<From, To>(From)