PostSharpAPI ReferencePost­Sharp.​Patterns.​ContractsNot­Empty­AttributeValidate­Value­Collection
Open sandboxFocus

Method ValidateValueCollection

ValidateValueCollection(ICollection, String, LocationKind, LocationValidationContext)

Declaration
[LocationValidationAdvice(Priority = 3, Master = "ValidateValueString")]
[MethodPointcut("SelectSelfOrNothing")]
[MethodExecutionAdviceOptimization]
[Internal(AttributeId = 627500528741417005L)]
[DebuggerAspectMethod]
public Exception ValidateValueCollection(ICollection value, string locationName, LocationKind locationKind, LocationValidationContext context)
Parameters
Type Name Description
ICollection value
String locationName
LocationKind locationKind
LocationValidationContext context
Returns
Type Description
Exception

ValidateValueCollection<T>(ICollection<T>, String, LocationKind, LocationValidationContext)

Declaration
[LocationValidationAdvice(Priority = 1, Master = "ValidateValueString")]
[MethodPointcut("SelectSelfOrNothing")]
[MethodExecutionAdviceOptimization]
[Internal(AttributeId = 627500528741417006L)]
[DebuggerAspectMethod]
public Exception ValidateValueCollection<T>(ICollection<T> value, string locationName, LocationKind locationKind, LocationValidationContext context)
Parameters
Type Name Description
ICollection<T> value
String locationName
LocationKind locationKind
LocationValidationContext context
Returns
Type Description
Exception
Type Parameters
Name Description
T

ValidateValueCollection<T>(IReadOnlyCollection<T>, String, LocationKind, LocationValidationContext)

Declaration
[LocationValidationAdvice(Priority = 2, Master = "ValidateValueString")]
[MethodPointcut("SelectSelfOrNothing")]
[MethodExecutionAdviceOptimization]
[Internal(AttributeId = 627500528741417007L)]
[DebuggerAspectMethod]
public Exception ValidateValueCollection<T>(IReadOnlyCollection<T> value, string locationName, LocationKind locationKind, LocationValidationContext context)
Parameters
Type Name Description
IReadOnlyCollection<T> value
String locationName
LocationKind locationKind
LocationValidationContext context
Returns
Type Description
Exception
Type Parameters
Name Description
T