Back to Devexpress

XpoDefault.DefaultCaseSensitive Property

xpo-devexpress-dot-xpo-dot-xpodefault-ecc0149d.md

latest2.8 KB
Original Source

XpoDefault.DefaultCaseSensitive Property

Specifies the default setting of the Session.CaseSensitive and XPDataView.CaseSensitive properties.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public static bool DefaultCaseSensitive { get; set; }
vb
Public Shared Property DefaultCaseSensitive As Boolean

Property Value

TypeDescription
Boolean

true to enable case-sensitive string comparisons in sessions, units of work, and XPDataView components; otherwise, false.

|

Remarks

The DefaultCaseSensitive property value is automatically used to determine whether string comparisons are case-sensitive in sessions, units of work, and XPDataView components, if the corresponding setting is not specified via the Session.CaseSensitive or XPDataView.CaseSensitive property.

The default value of the DefaultCaseSensitive property is false.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DefaultCaseSensitive property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

XPO_how-to-dynamically-create-a-read-only-calculated-persistent-alias-property-e3473/CS/ConsoleApplication17/XPAliasedMemberInfo.cs#L23

csharp
public override object GetValue(object theObject) {
    bool caseSensitive = XpoDefault.DefaultCaseSensitive;
    if (theObject is DevExpress.Xpo.Helpers.ISessionProvider) {

See Also

XpoDefault Class

XpoDefault Members

DevExpress.Xpo Namespace