Compartir por


Guard Members

Include Protected Members
Include Inherited Members

Retired Content

This content and the technology described is outdated and is no longer being maintained. For more information, see Transient Fault Handling.

The Guard type exposes the following members.

Methods

  Name Description
Public methodStatic member ArgumentNotDefaultValue<T>
Checks an argument to ensure that its value is not the default value for its type.
Public methodStatic member ArgumentNotGreaterThan
Checks an argument to ensure that its value doesn't exceed the specified ceiling baseline.
Public methodStatic member ArgumentNotNegativeValue(Int32, String)
Checks an argument to ensure that its value is not negative.
Public methodStatic member ArgumentNotNegativeValue(Int64, String)
Checks an argument to ensure that its value is not negative.
Public methodStatic member ArgumentNotNull
Checks an argument to ensure it isn't null.
Public methodStatic member ArgumentNotNullOrEmptyString
Checks a string argument to ensure it isn't null or empty.
Public methodStatic member ArgumentNotZeroOrNegativeValue
Checks an argument to ensure that its value is not zero or negative.
Public methodStatic member EnumValueIsDefined
Checks an Enum argument to ensure that its value is defined by the specified Enum type.
Public methodStatic member TypeIsAssignableFromType
Verifies that an argument type is assignable from the provided type (meaning interfaces are implemented, or classes exist in the base class hierarchy).

See Also

Guard Class

Microsoft.Practices.TransientFaultHandling Namespace