DataBindingHandlerAttribute.HandlerTypeName 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 type name of the data-binding handler.
public:
property System::String ^ HandlerTypeName { System::String ^ get(); };
public string HandlerTypeName { get; }
member this.HandlerTypeName : string
Public ReadOnly Property HandlerTypeName As String
Property Value
The type name of the handler. If the type name is null
, this property returns an empty string ("").
Examples
The following code example retrieves the HandlerTypeName property from an instance of the DataBindingHandlerAttribute class.
[
DataBindingHandlerAttribute(typeof(System.Web.UI.Design.TextDataBindingHandler))
]
public class SimpleWebControl:WebControl
{
// Insert code for class members here
}
class TestAttributes
{
public static void Main()
{
System.ComponentModel.AttributeCollection myAttributes =
TypeDescriptor.GetAttributes(typeof(SimpleWebControl));
DataBindingHandlerAttribute myDataBindingHandlerAttribute =
myAttributes[typeof(DataBindingHandlerAttribute)] as DataBindingHandlerAttribute;
if(myDataBindingHandlerAttribute != null)
{
Console.Write("DataBindingHandlerAttribute's HandlerTypeName is : " +
myDataBindingHandlerAttribute.HandlerTypeName);
}
}
}
<DataBindingHandlerAttribute(GetType(System.Web.UI.Design.TextDataBindingHandler))> _
Public Class SimpleWebControl
Inherits WebControl
' Insert code for class members here
End Class
Class TestAttributes
Public Shared Sub Main()
Dim myAttributes As System.ComponentModel.AttributeCollection = _
TypeDescriptor.GetAttributes(GetType(SimpleWebControl))
Dim myDataBindingHandlerAttribute As DataBindingHandlerAttribute = _
myAttributes(GetType(DataBindingHandlerAttribute))
If Not (myDataBindingHandlerAttribute Is Nothing) Then
Console.Write(("DataBindingHandlerAttribute's HandlerTypeName is : " + _
myDataBindingHandlerAttribute.HandlerTypeName))
End If
End Sub
End Class
Applies to
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา