OutputCacheProfileCollection.Set(OutputCacheProfile) Метод

Определение

Устанавливает указанный объект OutputCacheProfile.

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

Параметры

user
OutputCacheProfile

Элемент OutputCacheProfileCollection для установки.

Исключения

Список OutputCacheProfileCollection доступен только для чтения.

Примеры

В следующем примере кода показано применение метода Set.

// Using method RemoveAt.
formsAuthenticationCredentials.Users.RemoveAt(0);

if (!authenticationSection.SectionInformation.IsLocked)
{
    configuration.Save();
}
' Using method RemoveAt.
formsAuthenticationCredentials.Users.RemoveAt(0)

If Not authenticationSection.SectionInformation.IsLocked Then
   configuration.Save()
End If

Комментарии

Метод Set изменяет существующий OutputCacheProfileCollection элемент.

Применяется к

См. также раздел