ValidationPropertyAttribute.Name 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 name of the ASP.NET server control's validation property.
public:
property System::String ^ Name { System::String ^ get(); };
public string Name { get; }
member this.Name : string
Public ReadOnly Property Name As String
Property Value
The name of the validation property.
Examples
The following code example demonstrates using the ValidationPropertyAttribute class when creating a custom control.
[ValidationPropertyAttribute("Message")]
public class MessageControl : Label
{
private int _message = 0;
public int Message
{
get
{
return _message;
}
set
{
_message = value;
}
}
}
<ValidationPropertyAttribute("Message")> Public Class MessageControl
Inherits Label
Private _message As Integer = 0
Public Property Message() As Integer
Get
Return _message
End Get
Set(ByVal Value As Integer)
_message = Value
End Set
End Property
End Class
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.