报告用户是否忽略错误以及用户的名称。 支持的平台:仅窗口 Namespace: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-10-29 14:27
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.