Aracılığıyla paylaş


OutputCacheProfileCollection.Set(OutputCacheProfile) Yöntem

Tanım

Belirtilen OutputCacheProfile nesneyi ayarlar.

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)

Parametreler

Özel durumlar

Örnekler

Aşağıdaki kod örneğinde yönteminin nasıl kullanılacağı gösterilmektedir 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

Açıklamalar

Set yöntemi var olan OutputCacheProfileCollection bir öğeyi değiştirir.

Şunlara uygulanır

Ayrıca bkz.