LocationContractAttribute.CreateArgumentNullException Method |
Creates an ArgumentNullException with an error message formatted from ErrorMessage and
given concrete values.
Namespace: PostSharp.Patterns.ContractsAssembly: PostSharp.Patterns.Model (in PostSharp.Patterns.Model.dll) Version: 4.3.48.0 (4.3.48.0)

C#
protected ArgumentNullException CreateArgumentNullException( Object value, string locationName, LocationKind locationKind )
Parameters
- value
- Type: System.Object
Value assigned to the location. - locationName
- Type: System.String
Name of the location. - locationKind
- Type: PostSharp.Reflection.LocationKind
Location kind.
Return Value
Type: ArgumentNullExceptionA new ArgumentNullException where the message, has been derived from ErrorMessage, with placeholders replaced by their concrete value.
