Freigeben über


Guard Members

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Unity Application Block information can be found at the Unity Application Block site.

The Guard type exposes the following members.

Methods

  Name Description
Ee650458.pubmethod(en-us,PandP.10).gifEe650458.static(en-us,PandP.10).gif ArgumentNotNull
Throws ArgumentNullException if the given argument is null.
Ee650458.pubmethod(en-us,PandP.10).gifEe650458.static(en-us,PandP.10).gif ArgumentNotNullOrEmpty
Throws an exception if the tested string argument is null or the empty string.
Ee650458.pubmethod(en-us,PandP.10).gifEe650458.static(en-us,PandP.10).gif TypeIsAssignable
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.Unity.Utility Namespace