GlobalObjectCollection.IndexOf(GlobalObject) Yöntem

Tanım

Koleksiyondaki bir nesnenin konumunu alır.

public:
 int IndexOf(Microsoft::VisualStudio::Shell::Design::GlobalObject ^ item);
public int IndexOf (Microsoft.VisualStudio.Shell.Design.GlobalObject item);
member this.IndexOf : Microsoft.VisualStudio.Shell.Design.GlobalObject -> int
Public Function IndexOf (item As GlobalObject) As Integer

Parametreler

item
GlobalObject

İçindeki uzaklığa sahip olması gereken öğe.

Döndürülenler

Int32

Koleksiyondaki nesnenin konumu veya nesne koleksiyonda değilse-1.

Şunlara uygulanır