다음을 통해 공유


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 _
)
public abstract void AddRestriction (
    IPAddress ipAddress,
    TimeSpan expiration,
    string comments
)
public:
virtual void AddRestriction (
    IPAddress^ ipAddress, 
    TimeSpan expiration, 
    String^ comments
) abstract
public abstract void AddRestriction (
    IPAddress ipAddress, 
    TimeSpan expiration, 
    String comments
)
public abstract function AddRestriction (
    ipAddress : IPAddress, 
    expiration : TimeSpan, 
    comments : String
)

Parameters

  • ipAddress
    The IP address of the entry.
  • expiration
    The length of time between when the entry is added and when the entry expires.
  • comments
    Optional comments associated with the entry.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows Server 2003