Click or drag to resize

WindowsUtilitiesEqualsOrdinal Method (SecureString, String, Boolean)

Compares a secure string with an insecure string by evaluating the numeric values of the corresponding character objects in each string.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static bool EqualsOrdinal(
	this SecureString text1,
	string text2,
	bool ignoreCase = false
)

Parameters

text1
Type: System.SecuritySecureString
The secure string.
text2
Type: SystemString
The insecure string.
ignoreCase (Optional)
Type: SystemBoolean
if set to true case is ignored during comparison.

Return Value

Type: Boolean
true if both strings are equal, false otherwise.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SecureString. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also