Class BenachrichtigungExtension
Additional methods for BO4E.Extensions.BusinessObjects.Benachrichtigung.
Inheritance
Namespace: BO4E.Extensions.BusinessObjects.Benachrichtigung
Assembly: BO4E-dotnet.Extensions.dll
Syntax
public static class BenachrichtigungExtension : object
Methods
| Improve this Doc View SourceHas(Benachrichtigung, GenericStringStringInfo)
checks if b
contains a key value pair specified in gssi
in
Declaration
public static bool Has(this Benachrichtigung b, GenericStringStringInfo gssi)
Parameters
Type | Name | Description |
---|---|---|
Benachrichtigung | b | |
GenericStringStringInfo | gssi |
Returns
Type | Description |
---|---|
System.Boolean |
Has(Benachrichtigung, String)
check if a specific info exists
Declaration
public static bool Has(this Benachrichtigung b, string key)
Parameters
Type | Name | Description |
---|---|---|
Benachrichtigung | b | Benachrichtigung |
System.String | key | key to be checked |
Returns
Type | Description |
---|---|
System.Boolean | true if key is in |
Has(Benachrichtigung, String, String)
checks if
Declaration
public static bool Has(this Benachrichtigung b, string key, string value)
Parameters
Type | Name | Description |
---|---|---|
Benachrichtigung | b | |
System.String | key | |
System.String | value |
Returns
Type | Description |
---|---|
System.Boolean |
Has<T>(Benachrichtigung, String, Predicate<T>, Boolean, TypeConverter)
checks if Benachrichtigung b
has an entry with key keyName
in
Declaration
public static bool Has<T>(this Benachrichtigung b, string keyName, Predicate<T> predicate, bool passByDefault = true, TypeConverter typeConverter = null)
where T : IComparable
Parameters
Type | Name | Description |
---|---|---|
Benachrichtigung | b | Benachrichtigung object |
System.String | keyName | key name of the info property |
Predicate<T> | predicate | |
System.Boolean | passByDefault | defines default behaviour, e.g. if no such key is present |
TypeConverter | typeConverter | allows to provide an explicit type converter |
Returns
Type | Description |
---|---|
System.Boolean | true if there's an info object with given key |
Type Parameters
Name | Description |
---|---|
T | expected type of the info property |
MoveInfosToUserProperties(Benachrichtigung, Boolean)
moves key value pairs from
Declaration
public static void MoveInfosToUserProperties(this Benachrichtigung b, bool overwriteExistingKeys = false)
Parameters
Type | Name | Description |
---|---|---|
Benachrichtigung | b | Benachrichtigung |
System.Boolean | overwriteExistingKeys | set true to overwrite userProperties with same key |