C#检查系统是否支持HttpListener

C#检查系统是否支持HttpListener

// 检查系统是否支持
if (!HttpListener.IsSupported)
{
    throw new System.InvalidOperationException("必须为 Windows XP SP2 或 Server 2003 以上系统!");
}

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注