Show / Hide Table of Contents

    CustomTitle 类

    表示自定义头衔。

    继承
    System.Object
    CustomTitle
    继承成员
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    命名空间: HuajiTech.CoolQ
    程序集: HuajiTech.CoolQ.Abstractions.dll
    语法
    public class CustomTitle

    构造函数

    | 改善此文档 查看源代码

    CustomTitle(String, Nullable<DateTime>)

    以指定的文本和过期时间初始化一个 CustomTitle 类的新实例。

    声明
    public CustomTitle(string text, DateTime? expirationTime = default(DateTime? ))
    参数
    类型 名称 描述
    System.String text

    文本。

    System.Nullable<System.DateTime> expirationTime

    过期时间。

    异常
    类型 条件
    System.ArgumentException

    text 为 null、System.String.Empty 或仅由空白字符组成。

    属性

    | 改善此文档 查看源代码

    ExpirationTime

    获取当前 CustomTitle 实例的过期时间。 如果没有过期时间,则为 null。

    声明
    public DateTime? ExpirationTime { get; }
    属性值
    类型 描述
    System.Nullable<System.DateTime>
    | 改善此文档 查看源代码

    Text

    获取当前 CustomTitle 的文本。

    声明
    public string Text { get; }
    属性值
    类型 描述
    System.String
    • 改善此文档
    • 查看源代码
    Back to top 本文档使用 CC BY-NC-SA 4.0 进行许可。