blob: f60b2e20148388c05079fad47176c5ec03a194d2 [file] [log] [blame]
<html dir="LTR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
<title>Level.Compare Method</title>
<xml>
</xml>
<link rel="stylesheet" type="text/css" href="MSDN.css" />
</head>
<body id="bodyID" class="dtBODY">
<div id="nsbanner">
<div id="bannerrow1">
<table class="bannerparthead" cellspacing="0">
<tr id="hdr">
<td class="runninghead">Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0</td>
<td class="product">
</td>
</tr>
</table>
</div>
<div id="TitleRow">
<h1 class="dtH1">Level.Compare�Method�</h1>
</div>
</div>
<div id="nstext">
<p> Compares two specified <a href="log4net.Core.Level.html">Level</a> instances. </p>
<div class="syntax">
<span class="lang">[Visual�Basic]</span>
<br />Public�Shared�Function�Compare( _<br />���ByVal <i>l</i>�As�<a href="log4net.Core.Level.html">Level</a>,�_<br />���ByVal <i>r</i>�As�<a href="log4net.Core.Level.html">Level</a>�_<br />)�As�<a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemInt32ClassTopic.htm">Integer</a></div>
<div class="syntax">
<span class="lang">[C#]</span>
<br />public�static�<a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemInt32ClassTopic.htm">int</a>�Compare(<br />���<a href="log4net.Core.Level.html">Level</a><i>l</i>,<br />���<a href="log4net.Core.Level.html">Level</a><i>r</i><br />);</div>
<h4 class="dtH4">Parameters</h4>
<dl>
<dt>
<i>l</i>
</dt>
<dd>The first <a href="log4net.Core.Level.html">Level</a> to compare.</dd>
<dt>
<i>r</i>
</dt>
<dd>The second <a href="log4net.Core.Level.html">Level</a> to compare.</dd>
</dl>
<h4 class="dtH4">Return Value</h4>
<p> A 32-bit signed integer that indicates the relative order of the two values compared. The return value has these meanings: <div class="tablediv"><table class="dtTABLE" cellspacing="0"><tr valign="top">
<th width="50%">Value</th>
<th width="50%">Meaning</th>
</tr><tr valign="top">
<td>Less than zero</td>
<td><i>l</i> is less than <i>r</i>.</td>
</tr><tr valign="top">
<td>Zero</td>
<td><i>l</i> is equal to <i>r</i>.</td>
</tr><tr valign="top">
<td>Greater than zero</td>
<td><i>l</i> is greater than <i>r</i>.</td>
</tr></table></div>
</p>
<h4 class="dtH4">Remarks</h4>
<p> Compares two levels. </p>
<h4 class="dtH4">See Also</h4><p><a href="log4net.Core.Level.html">Level Class</a> | <a href="log4net.Core.html">log4net.Core Namespace</a></p><object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e" viewastext="true" style="display: none;"><param name="Keyword" value="Compare method"></param><param name="Keyword" value="Compare method, Level class"></param><param name="Keyword" value="Level.Compare method"></param></object><hr /><div id="footer"><a href='http://logging.apache.org/log4net/'>Copyright 2004-2013 The Apache Software Foundation.</a><br></br>Apache log4net, Apache and log4net are trademarks of The Apache Software Foundation.</div></div>
</body>
</html>