Control.ClientIDSeparator 属性

定义

获取一个字符值,该值表示 ClientID 属性中使用的分隔符字符。Gets a character value representing the separator character used in the ClientID property.

protected:
 property char ClientIDSeparator { char get(); };
protected char ClientIDSeparator { get; }
member this.ClientIDSeparator : char
Protected ReadOnly Property ClientIDSeparator As Char

属性值

始终返回下划线字符 ()。Always returns the underscore character ().

注解

ClientID 值是通过串联控件的 ID 值和其父控件的 UniqueID 值生成的。The ClientID value is generated by concatenating the ID value of the control and the UniqueID value of its parent control. 生成的 ID 属性的每个部分都由 ClientIDSeparator 属性值隔开。Each part of the generated ID property is separated by the ClientIDSeparator property value. 该值始终返回下划线()。The value always returns an underscore ().

适用于

另请参阅