PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​ContractsString­Length­AttributeValidate­Value
Open sandboxFocus

StringLengthAttribute.ValidateValue Method

ValidateValue(String, String, LocationKind, LocationValidationContext)

Declaration
[LocationValidationAdvice]
[MethodPointcut("SelectSelfOrNothing")]
[MethodExecutionAdviceOptimization]
[Internal(AttributeId = 627500528741417034L)]
[DebuggerAspectMethod]
public Exception ValidateValue(string value, string locationName, LocationKind locationKind, LocationValidationContext context)
Parameters
Type Name Description
String value
String locationName
LocationKind locationKind
LocationValidationContext context
Returns
Type Description
System.Exception