PersistenceModeAttribute.Mode Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the current value of the PersistenceMode enumeration.
public:
property System::Web::UI::PersistenceMode Mode { System::Web::UI::PersistenceMode get(); };
public System.Web.UI.PersistenceMode Mode { get; }
member this.Mode : System.Web.UI.PersistenceMode
Public ReadOnly Property Mode As PersistenceMode
Property Value
A PersistenceMode that represents the current value of the enumeration. This value can be Attribute
, InnerProperty
, InnerDefaultProperty
, or EncodedInnerDefaultProperty
. The default is Attribute
.
Examples
[PersistenceMode(PersistenceMode.InnerProperty),
TemplateContainer(typeof(TemplateItem))]
public ITemplate MessageTemplate {
get {
return _messageTemplate;
}
set {
_messageTemplate = value;
}
}
<PersistenceMode(PersistenceMode.InnerProperty), TemplateContainer(GetType(TemplateItem))> Public Property MessageTemplate() As ITemplate
Get
Return _messageTemplate
End Get
Set(ByVal Value As ITemplate)
_messageTemplate = Value
End Set
End Property
Applies to
See also
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.