'Declaration
Public Overridable Function Replace( _
ByVal As Object, _
ByVal As Object _
) As Integer
'使用法
Dim instance As Elements
Dim newObj As Object
Dim oldObj As Object
Dim value As Integer
value = instance.Replace(newObj, oldObj)
パラメータ
- newObj
- 使用する新しい要素
- oldObj
- 置き換える要素
戻り値の型
成功した場合は要素の新しいインデックスを表すInteger、それ以外の場合は-1