ValidationPropertyAttribute クラスの新しいインスタンスを初期化します。
Public Sub New( _
ByVal name As String _)
[C#]
public ValidationPropertyAttribute(
stringname);
[C++]
public: ValidationPropertyAttribute(
String* name);
[JScript]
public function ValidationPropertyAttribute(
name : String);
パラメータ
- name
検証プロパティの名前。
使用例
<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
[C#]
[ValidationPropertyAttribute("Message")]
public class MessageControl : Label
{
private int _message = 0;
public int Message
{
get
{
return _message;
}
set
{
_message = value;
}
}
}
[C++]
[ValidationPropertyAttribute(S"Message")]
public __gc class MessageControl : public Label
{
private:
int _message;
public:
__property int get_Message()
{
return _message;
}
__property void set_Message( int value )
{
_message = value;
}
};
[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン をクリックします。
必要条件
プラットフォーム: Windows 2000, Windows XP Professional, Windows Server 2003 ファミリ
参照
ValidationPropertyAttribute クラス | ValidationPropertyAttribute メンバ | System.Web.UI 名前空間