语言

ProfilePropertySettingsCollection.Set(ProfilePropertySettings) 方法

定义

将指定的 ProfilePropertySettings 对象添加到集合中。

public:
 void Set(System::Web::Configuration::ProfilePropertySettings ^ propertySettings);
public void Set(System.Web.Configuration.ProfilePropertySettings propertySettings);
member this.Set : System.Web.Configuration.ProfilePropertySettings -> unit
Public Sub Set (propertySettings As ProfilePropertySettings)

参数

例外

要 ProfilePropertySettings 添加的对象已存在于集合中,或者集合是只读的。

注解

调用此方法的效果与调用 Add 该方法的效果相同。

适用于

另请参阅