Partager via


Policies.Remove Method

Removes the policy with the specified key from the collection.

Namespace: Microsoft.Web.Services3.Design
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim key As String
Dim returnValue As Boolean
Dim policies1 As Policies
returnValue = policies1.Remove(key)

Syntax

'Declaration
Public Function Remove( _
    ByVal key As String _
) As Boolean
public bool Remove(
    string key
);
public:
virtual bool arbitrary-name(
    String^ key
);
public boolean Remove(
    System.String key
);
public final function Remove(
     key : String
) : Boolean;

Parameters

  • key
    The key of the policy to remove.

Return Value

true if the policy is successfully removed; otherwise, false. This method also returns false if key was not found in the original collection.

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 Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

Policies Class
Policies Members
Microsoft.Web.Services3.Design Namespace