IPPermission.AddRestriction method
When overridden in a derived class, the AddRestriction method adds a new entry to the Internet Protocol (IP) Allow/Deny list that returns a Deny status.
Namespace: Microsoft.Exchange.Data.Transport
Assembly: Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)
Syntax
'Declaration
Public MustOverride Sub AddRestriction ( _
ipAddress As IPAddress, _
expiration As TimeSpan, _
comments As String _
)
'Usage
Dim instance As IPPermission
Dim ipAddress As IPAddress
Dim expiration As TimeSpan
Dim comments As String
instance.AddRestriction(ipAddress, expiration, _
comments)
public abstract void AddRestriction(
IPAddress ipAddress,
TimeSpan expiration,
string comments
)
Parameters
ipAddress
Type: System.Net.IPAddressThe IP address of the entry.
expiration
Type: System.TimeSpanThe length of time between when the entry is added and when the entry expires.
comments
Type: System.StringOptional comments associated with the entry.