Language

PersistChildrenAttribute.IsDefaultAttribute Method

Definition

Returns a value indicating whether the value of the current instance of the PersistChildrenAttribute class is the default value of the derived class.

public:
 override bool IsDefaultAttribute();
public override bool IsDefaultAttribute();
override this.IsDefaultAttribute : unit -> bool
Public Overrides Function IsDefaultAttribute () As Boolean

Returns

true if the value of the current instance of the PersistChildrenAttribute is the default instance; otherwise, false.

Examples

The following code example demonstrates how to use the IsDefaultAttribute method to determine if the current instance of the PersistChildrenAttribute class is the same as the default instance.

This code example is part of a larger example provided for the PersistChildrenAttribute class.

<%@ Page Language="C#" %>
<%@ Register TagPrefix="AspSample" Assembly="Samples.AspNet.CS.Controls" Namespace="PersistChildrenSamples" %>







    PersistChildrenAttribute


    
<%@ Page Language="VB" %>
<%@ Register TagPrefix="AspSample" Assembly="Samples.AspNet.VB.Controls" Namespace="PersistChildrenSampleVB" %>









    PersistChildrenAttribute


    

Applies to

See also