Throws an exception if collection already contains item with specified name.
シンタックス
'宣言
Public Overridable Sub CheckName( _
ByVal As INamedObject, _
ByVal As System.String, _
ByVal As System.String _
)
'使用法
Dim instance As NamedCollection(Of TItem)
Dim item As INamedObject
Dim oldName As System.String
Dim newName As System.String
instance.CheckName(item, oldName, newName)
public virtual void CheckName(
INamedObject ,
System.string ,
System.string
)
パラメータ
- item
- An object with a unique name.
- oldName
- The old name.
- newName
- The new name.
参照