共用方式為


ProfilePropertySettingsCollection.IndexOf(ProfilePropertySettings) 方法

定義

傳回 ProfilePropertySettings 物件指定之索引。

public:
 int IndexOf(System::Web::Configuration::ProfilePropertySettings ^ propertySettings);
public int IndexOf (System.Web.Configuration.ProfilePropertySettings propertySettings);
member this.IndexOf : System.Web.Configuration.ProfilePropertySettings -> int
Public Function IndexOf (propertySettings As ProfilePropertySettings) As Integer

參數

propertySettings
ProfilePropertySettings

集合中的 ProfilePropertySettings 物件。

傳回

指定的 ProfilePropertySettings 物件之索引;如果集合中找不到物件,則為 -1。

適用於

另請參閱