StringExtensionsIsLength Method
Checks if string length satisfies minimum and maximum allowable char length. does not ignore leading and
trailing white-space
Namespace: PCBI_CadanceFab_ImportAssembly: PCBI_CadanceFab_Import (in PCBI_CadanceFab_Import.dll) Version: 16.0.0.0 (16.0.0.0)
public static bool IsLength(
this string val,
int minCharLength,
int maxCharLength
)
<ExtensionAttribute>
Public Shared Function IsLength (
val As String,
minCharLength As Integer,
maxCharLength As Integer
) As Boolean
public:
[ExtensionAttribute]
static bool IsLength(
String^ val,
int minCharLength,
int maxCharLength
)
[<ExtensionAttribute>]
static member IsLength :
val : string *
minCharLength : int *
maxCharLength : int -> bool
- val String
- string to evaluate
- minCharLength Int32
- minimum char length
- maxCharLength Int32
- maximum char length
Booleantrue if string satisfies minimum and maximum allowable lengthIn 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).