GuardStringStartsWith Method |
[This is preliminary documentation and is subject to change.]
Checks if value starts with startsWith
Namespace:
CSInfrastructure.CodeContracts
Assembly:
CSInfrastructure (in CSInfrastructure.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax public static string StringStartsWith(
string value,
string startsWith,
string paramName
)
Parameters
- value
- Type: SystemString
The value to check - startsWith
- Type: SystemString
The value value should start with - paramName
- Type: SystemString
The name of the parameter being checked
Return Value
Type:
StringThe value being checked
Exceptions Exception | Condition |
---|
ArgumentException | Thrown when value does not start with startsWith |
See Also