DirectoryAttributeModificationCollection.IndexOf 方法

定义

IndexOf(DirectoryAttributeModification) 方法返回在 DirectoryAttributeModificationCollection 中指定的 DirectoryAttributeModification 对象的第一个匹配项从零开始的索引。

public:
 int IndexOf(System::DirectoryServices::Protocols::DirectoryAttributeModification ^ value);
public int IndexOf (System.DirectoryServices.Protocols.DirectoryAttributeModification value);
member this.IndexOf : System.DirectoryServices.Protocols.DirectoryAttributeModification -> int
Public Function IndexOf (value As DirectoryAttributeModification) As Integer

参数

返回

如果找到指定的 DirectoryAttributeModification 对象,则为其索引值;否则为 -1。

适用于