 | ExtensionMethodsMask Method |
Masks the specified string exposing only the last digitsToDisclose or the last 20% of the identifier
Namespace: SanteDBAssembly: SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.2081-alpha+0a330d5f5a5d3cb3e6e945ef530e94ac5671b49c
Syntaxpublic static string Mask(
this string stringToMask,
int? digitsToDisclose = null
)
<ExtensionAttribute>
Public Shared Function Mask (
stringToMask As String,
Optional digitsToDisclose As Integer? = Nothing
) As String
public:
[ExtensionAttribute]
static String^ Mask(
String^ stringToMask,
Nullable<int> digitsToDisclose = nullptr
)
[<ExtensionAttribute>]
static member Mask :
stringToMask : string *
?digitsToDisclose : Nullable<int>
(* Defaults:
let _digitsToDisclose = defaultArg digitsToDisclose null
*)
-> string Parameters
- stringToMask String
- The string which is to be masked
- digitsToDisclose NullableInt32 (Optional)
- The number of digits to disclose at the end of the identifier (default is last 1/4 of the string)
Return Value
StringThe masked string
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. 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