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에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET