CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

ActiveX 开发指南

相关分类

IgnoredByUserGet Method (ActiveX/CSP)

2023-1-2 20:48| 发布者: admin| 查看: 205| 评论: 0|来自: AutoCAD

摘要: 报告用户是否忽略错误以及用户的名称。

报告用户是否忽略错误以及用户的名称。

支持的平台:仅窗口

Namespace:AcStMgr

集会:AcStMgr.tlb

签名

VB.NET:

object.IgnoredByUserGet(bIgnored, UserName)

C#:

object.IgnoredByUserGet(ref bIgnored, ref UserName);
对象

类型:AcStError对象

此方法适用的对象。

b忽略

访问:输入/输出

类型:布尔

  • False:用户忽略了错误
  • True:用户未忽略错误
用户名

访问:输入/输出

类型:字符串

忽略错误的用户的名称。

返回值(RetVal)

无返回值。

言论

没有额外的评论。

发布信息

释放:AutoCAD 2004 及更高版本

  • AcStMgr.tlb- AutoCAD 2004 及更高版本

例子

VB.NET:

Public Function GetError() As AcStError Implements IAcStPlugin2.GetError
    ' Gets the ignore status of an error and outputs the information to the Output window
    Dim bFlag As Boolean = False
    Dim sName As String = ""
    m_pError.IgnoredByApplicationGet(bFlag, sName)
    Debug.Print(vbLf + "Ignored status: " + bFlag.ToString() + "  App Name: " + sName)

    m_pError.IgnoredByUserGet(bFlag, sName)
    Debug.Print(vbLf + "Ignored status: " + bFlag.ToString() + "  User Name: " + sName)

    Return m_pError
End Function

C#:

public AcStError GetError()
{
    // Gets the ignore status of an error and outputs the information to the Output window
    bool bFlag = false;
    string sName = "";
    m_pError.IgnoredByApplicationGet(bFlag, sName);
    Debug.Print("\nIgnored status: " + bFlag.ToString() + "  App Name: " + sName);

    m_pError.IgnoredByUserGet(bFlag, sName);
    Debug.Print("\nIgnored status: " + bFlag.ToString() + "  User Name: " + sName);

    return m_pError;
}

路过

雷人

握手

鲜花

鸡蛋

最新评论

QQ|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 )

GMT+8, 2024-5-12 17:41

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部