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.IPAddress
The IP address of the entry.
- expiration
Type: System.TimeSpan
The length of time between when the entry is added and when the entry expires.
- comments
Type: System.String
Optional comments associated with the entry.
See Also