PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​ContractsEnum­Data­Type­AttributeValidate­Value
Open sandboxFocus

EnumDataTypeAttribute.ValidateValue Method

ValidateValue(Nullable<Int64>, String, LocationKind, LocationValidationContext)

Declaration
[LocationValidationAdvice(Master = "ValidateValueString")]
[SelfPointcut]
[MethodExecutionAdviceOptimization]
[Internal(AttributeId = 627500528741416989L)]
[DebuggerAspectMethod]
public Exception ValidateValue(Nullable<long> value, string locationName, LocationKind locationKind, LocationValidationContext context)
Parameters
Type Name Description
Nullable<System.Int64> value
String locationName
LocationKind locationKind
LocationValidationContext context
Returns
Type Description
System.Exception

ValidateValue(Nullable<UInt64>, String, LocationKind, LocationValidationContext)

Declaration
[LocationValidationAdvice(Master = "ValidateValueString")]
[SelfPointcut]
[MethodExecutionAdviceOptimization]
[Internal(AttributeId = 627500528741416990L)]
[DebuggerAspectMethod]
public Exception ValidateValue(Nullable<ulong> value, string locationName, LocationKind locationKind, LocationValidationContext context)
Parameters
Type Name Description
Nullable<UInt64> value
String locationName
LocationKind locationKind
LocationValidationContext context
Returns
Type Description
System.Exception

ValidateValue(Nullable<Int32>, String, LocationKind, LocationValidationContext)

Declaration
[LocationValidationAdvice(Master = "ValidateValueString")]
[SelfPointcut]
[MethodExecutionAdviceOptimization]
[Internal(AttributeId = 627500528741416991L)]
[DebuggerAspectMethod]
public Exception ValidateValue(Nullable<int> value, string locationName, LocationKind locationKind, LocationValidationContext context)
Parameters
Type Name Description
Nullable<System.Int32> value
String locationName
LocationKind locationKind
LocationValidationContext context
Returns
Type Description
System.Exception

ValidateValue(Nullable<UInt32>, String, LocationKind, LocationValidationContext)

Declaration
[LocationValidationAdvice(Master = "ValidateValueString")]
[SelfPointcut]
[MethodExecutionAdviceOptimization]
[Internal(AttributeId = 627500528741416992L)]
[DebuggerAspectMethod]
public Exception ValidateValue(Nullable<uint> value, string locationName, LocationKind locationKind, LocationValidationContext context)
Parameters
Type Name Description
Nullable<UInt32> value
String locationName
LocationKind locationKind
LocationValidationContext context
Returns
Type Description
System.Exception

ValidateValue(Nullable<Int16>, String, LocationKind, LocationValidationContext)

Declaration
[LocationValidationAdvice(Master = "ValidateValueString")]
[SelfPointcut]
[MethodExecutionAdviceOptimization]
[Internal(AttributeId = 627500528741416993L)]
[DebuggerAspectMethod]
public Exception ValidateValue(Nullable<short> value, string locationName, LocationKind locationKind, LocationValidationContext context)
Parameters
Type Name Description
Nullable<Int16> value
String locationName
LocationKind locationKind
LocationValidationContext context
Returns
Type Description
System.Exception

ValidateValue(Nullable<Byte>, String, LocationKind, LocationValidationContext)

Declaration
[LocationValidationAdvice(Master = "ValidateValueString")]
[SelfPointcut]
[MethodExecutionAdviceOptimization]
[Internal(AttributeId = 627500528741416994L)]
[DebuggerAspectMethod]
public Exception ValidateValue(Nullable<byte> value, string locationName, LocationKind locationKind, LocationValidationContext context)
Parameters
Type Name Description
Nullable<Byte> value
String locationName
LocationKind locationKind
LocationValidationContext context
Returns
Type Description
System.Exception

ValidateValue(Nullable<SByte>, String, LocationKind, LocationValidationContext)

Declaration
[LocationValidationAdvice(Master = "ValidateValueString")]
[SelfPointcut]
[MethodExecutionAdviceOptimization]
[Internal(AttributeId = 627500528741416995L)]
[DebuggerAspectMethod]
public Exception ValidateValue(Nullable<sbyte> value, string locationName, LocationKind locationKind, LocationValidationContext context)
Parameters
Type Name Description
Nullable<SByte> value
String locationName
LocationKind locationKind
LocationValidationContext context
Returns
Type Description
System.Exception

ValidateValue(Nullable<UInt16>, String, LocationKind, LocationValidationContext)

Declaration
[LocationValidationAdvice(Master = "ValidateValueString")]
[SelfPointcut]
[MethodExecutionAdviceOptimization]
[Internal(AttributeId = 627500528741416996L)]
[DebuggerAspectMethod]
public Exception ValidateValue(Nullable<ushort> value, string locationName, LocationKind locationKind, LocationValidationContext context)
Parameters
Type Name Description
Nullable<UInt16> value
String locationName
LocationKind locationKind
LocationValidationContext context
Returns
Type Description
System.Exception

ValidateValue(Int64, String, LocationKind, LocationValidationContext)

Declaration
[LocationValidationAdvice(Master = "ValidateValueString")]
[SelfPointcut]
[MethodExecutionAdviceOptimization]
[Internal(AttributeId = 627500528741416997L)]
[DebuggerAspectMethod]
public Exception ValidateValue(long value, string locationName, LocationKind locationKind, LocationValidationContext context)
Parameters
Type Name Description
System.Int64 value
String locationName
LocationKind locationKind
LocationValidationContext context
Returns
Type Description
System.Exception

ValidateValue(UInt64, String, LocationKind, LocationValidationContext)

Declaration
[LocationValidationAdvice(Master = "ValidateValueString")]
[SelfPointcut]
[MethodExecutionAdviceOptimization]
[Internal(AttributeId = 627500528741416998L)]
[DebuggerAspectMethod]
public Exception ValidateValue(ulong value, string locationName, LocationKind locationKind, LocationValidationContext context)
Parameters
Type Name Description
UInt64 value
String locationName
LocationKind locationKind
LocationValidationContext context
Returns
Type Description
System.Exception

ValidateValue(Int32, String, LocationKind, LocationValidationContext)

Declaration
[LocationValidationAdvice(Master = "ValidateValueString")]
[SelfPointcut]
[MethodExecutionAdviceOptimization]
[Internal(AttributeId = 627500528741416999L)]
[DebuggerAspectMethod]
public Exception ValidateValue(int value, string locationName, LocationKind locationKind, LocationValidationContext context)
Parameters
Type Name Description
System.Int32 value
String locationName
LocationKind locationKind
LocationValidationContext context
Returns
Type Description
System.Exception

ValidateValue(UInt32, String, LocationKind, LocationValidationContext)

Declaration
[LocationValidationAdvice(Master = "ValidateValueString")]
[SelfPointcut]
[MethodExecutionAdviceOptimization]
[Internal(AttributeId = 627500528741417000L)]
[DebuggerAspectMethod]
public Exception ValidateValue(uint value, string locationName, LocationKind locationKind, LocationValidationContext context)
Parameters
Type Name Description
UInt32 value
String locationName
LocationKind locationKind
LocationValidationContext context
Returns
Type Description
System.Exception

ValidateValue(Int16, String, LocationKind, LocationValidationContext)

Declaration
[LocationValidationAdvice(Master = "ValidateValueString")]
[SelfPointcut]
[MethodExecutionAdviceOptimization]
[Internal(AttributeId = 627500528741417001L)]
[DebuggerAspectMethod]
public Exception ValidateValue(short value, string locationName, LocationKind locationKind, LocationValidationContext context)
Parameters
Type Name Description
Int16 value
String locationName
LocationKind locationKind
LocationValidationContext context
Returns
Type Description
System.Exception

ValidateValue(Byte, String, LocationKind, LocationValidationContext)

Declaration
[LocationValidationAdvice(Master = "ValidateValueString")]
[SelfPointcut]
[MethodExecutionAdviceOptimization]
[Internal(AttributeId = 627500528741417002L)]
[DebuggerAspectMethod]
public Exception ValidateValue(byte value, string locationName, LocationKind locationKind, LocationValidationContext context)
Parameters
Type Name Description
Byte value
String locationName
LocationKind locationKind
LocationValidationContext context
Returns
Type Description
System.Exception

ValidateValue(SByte, String, LocationKind, LocationValidationContext)

Declaration
[LocationValidationAdvice(Master = "ValidateValueString")]
[SelfPointcut]
[MethodExecutionAdviceOptimization]
[DebuggerAspectMethod]
public Exception ValidateValue(sbyte value, string locationName, LocationKind locationKind, LocationValidationContext context)
Parameters
Type Name Description
SByte value
String locationName
LocationKind locationKind
LocationValidationContext context
Returns
Type Description
System.Exception

ValidateValue(UInt16, String, LocationKind, LocationValidationContext)

Declaration
[LocationValidationAdvice(Master = "ValidateValueString")]
[SelfPointcut]
[MethodExecutionAdviceOptimization]
[Internal(AttributeId = 627500528741417003L)]
[DebuggerAspectMethod]
public Exception ValidateValue(ushort value, string locationName, LocationKind locationKind, LocationValidationContext context)
Parameters
Type Name Description
UInt16 value
String locationName
LocationKind locationKind
LocationValidationContext context
Returns
Type Description
System.Exception