Remove Method

[VB]

Public Function Remove(ByVal name As String) As Boolean

[C#]

public System.Boolean Remove(System.String name)

 

Description

The Remove method removes the specifed parameter from the ParameterCollection.  If the specified parameter does not exist in the collection, a GeoCalcException will be thrown.

 

Example

[VB]

Private Sub GeoCalcNET_ParameterCollection_Remove(ByVal pc As GeoCalcNET.ParameterCollection)

Dim name As String = "the name of the desired parameter"

If pc.Exists(name) Then

If Not pc.Remove(name) Then

MessageBox.Show("unable to remove specified parameter")

End If

End If

End Sub

 

[C#]

private void GeoCalcNET_ParameterCollection_Remove(GeoCalcNET.ParameterCollection pc)

{

String name = "maude";

if(pc.Exists(name))

{

if(! pc.Remove(name))

{

MessageBox.Show("unable to remove parameter");

}

}

}