共用方式為


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。

適用於