OutputCacheProfileCollection.Set(OutputCacheProfile) Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
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
- user
- OutputCacheProfile
Ayarlanacağı OutputCacheProfileCollection öğe.
Özel durumlar
OutputCacheProfileCollection salt okunurdur.
Ö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.