IgnoredByUserGet 方法 (ActiveX/CSP) 
报告用户是否忽略错误以及用户的名称。 支持的平台:仅限 Windows 命名空间:AcStMgr (英语) 集会:AcStMgr.tlb 签名VB.NET: object.IgnoredByUserGet(bIgnored, UserName) C#: object.IgnoredByUserGet(ref bIgnored, ref UserName); 
 返回值 (RetVal)无返回值。 言论没有其他评论。 发行信息释放: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;
}
 
 | 
|Archiver|CAD开发者社区
( 苏ICP备2022047690号-1   苏公网安备32011402011833)
GMT+8, 2025-11-4 20:05
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.