本文整理汇总了C#中WikiFunctions.API.ApiEdit类的典型用法代码示例。如果您正苦于以下问题:C# ApiEdit类的具体用法?C# ApiEdit怎么用?C# ApiEdit使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ApiEdit类属于WikiFunctions.API命名空间,在下文中一共展示了ApiEdit类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Clone
/// <summary>
/// Creates a new instance of the ApiEdit class by cloning the current instance
/// ATTENTION: the clones will share the same cookie container, so logging off or logging under another username
/// with one instance will automatically make another one do the same
/// </summary>
public ApiEdit Clone()
{
ApiEdit clone = new ApiEdit();
clone.m_URL = m_URL;
clone.m_Maxlag = m_Maxlag;
clone.m_Cookies = m_Cookies;
clone.ProxySettings = ProxySettings;
return clone;
}
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:15,代码来源:ApiEdit.cs
示例2: btnLogin_Click
private void btnLogin_Click(object sender, EventArgs e)
{
groupBox2.Enabled = false;
try
{
Editor = new ApiEdit(txtURL.Text);
Editor.Login(txtUsername.Text, txtPassword.Text);
groupBox2.Enabled = true;
txtEdit.Text = "";
btnSave.Enabled = false;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, ex.GetType().Name);
}
}
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:17,代码来源:Form1.cs
示例3: ApiErrorException
public ApiErrorException(ApiEdit editor, string errorCode, string errorMessage)
: base(editor, "API returned the following error: '" + errorMessage + "'")
{
ErrorCode = errorCode;
ApiErrorMessage = errorMessage;
}
开发者ID:reedy,项目名称:AutoWikiBrowser,代码行数:6,代码来源:ApiExceptions.cs
示例4: SpamlistException
public SpamlistException(ApiEdit editor, string url)
: base(editor, "The link '" + url + "' is blocked by spam blacklist")
{
URL = url;
}
开发者ID:reedy,项目名称:AutoWikiBrowser,代码行数:5,代码来源:ApiExceptions.cs
示例5: RedirectToSpecialPageException
public RedirectToSpecialPageException(ApiEdit editor)
: base(editor, "Redirect target is special page")
{
}
开发者ID:reedy,项目名称:AutoWikiBrowser,代码行数:4,代码来源:ApiExceptions.cs
示例6: NewMessagesException
public NewMessagesException(ApiEdit editor)
: base(editor, "You have new messages")
{
}
开发者ID:reedy,项目名称:AutoWikiBrowser,代码行数:4,代码来源:ApiExceptions.cs
示例7: MediaWikiSaysNoException
public MediaWikiSaysNoException(ApiEdit editor, string message)
: base(editor, message)
{
}
开发者ID:reedy,项目名称:AutoWikiBrowser,代码行数:4,代码来源:ApiExceptions.cs
示例8: MaxlagException
public MaxlagException(ApiEdit editor, int maxlag, int retryAfter)
: base(editor, "maxlag", "Maxlag exceeded by " + maxlag + " seconds, retry in " + retryAfter + " seconds")
{
Maxlag = maxlag;
RetryAfter = retryAfter;
}
开发者ID:reedy,项目名称:AutoWikiBrowser,代码行数:6,代码来源:ApiExceptions.cs
示例9: BrokenXmlException
public BrokenXmlException(ApiEdit editor, string message)
: base(editor, message)
{
}
开发者ID:reedy,项目名称:AutoWikiBrowser,代码行数:4,代码来源:ApiExceptions.cs
示例10: AssertionFailedException
public AssertionFailedException(ApiEdit editor, string assertion)
: base(editor, "Assertion '" + assertion + "' failed")
{
}
开发者ID:reedy,项目名称:AutoWikiBrowser,代码行数:4,代码来源:ApiExceptions.cs
示例11: ApiXmlException
public ApiXmlException(ApiEdit editor, XmlException innerException, string get, string post, string content)
: base(editor, "XmlException in ApiEdit.CheckForErrors", innerException)
{
GetUrl = get;
PostQuery = post;
Content = content;
}
开发者ID:reedy,项目名称:AutoWikiBrowser,代码行数:7,代码来源:ApiExceptions.cs
示例12: ApiException
public ApiException(ApiEdit editor, string message, Exception innerException)
: base(message, innerException)
{
Editor = editor;
ThrowingThread = Thread.CurrentThread;
}
开发者ID:reedy,项目名称:AutoWikiBrowser,代码行数:6,代码来源:ApiExceptions.cs
示例13: ApiOperationFailedException
public ApiOperationFailedException(ApiEdit editor, string action, string result)
: base(editor, "Operation '" + action + "' ended with result '" + result + "'.")
{
Action = action;
Result = result;
}
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:6,代码来源:ApiExceptions.cs
示例14: ApiException
public ApiException(ApiEdit editor, string message, Exception innerException)
: base(message, innerException)
{
Editor = editor;
}
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:5,代码来源:ApiExceptions.cs
示例15: LoggedOffException
public LoggedOffException(ApiEdit editor)
: base(editor, "User is logged off")
{
}
开发者ID:reedy,项目名称:AutoWikiBrowser,代码行数:4,代码来源:ApiExceptions.cs
示例16: LoginException
public LoginException(ApiEdit editor, string status)
: base(editor, GetErrorMessage(status))
{
StatusCode = status;
}
开发者ID:reedy,项目名称:AutoWikiBrowser,代码行数:5,代码来源:ApiExceptions.cs
示例17: MediaWikiReadOnlyException
public MediaWikiReadOnlyException(ApiEdit editor, string errorMessage)
: base(editor, "readonly", errorMessage)
{
}
开发者ID:reedy,项目名称:AutoWikiBrowser,代码行数:4,代码来源:ApiExceptions.cs
示例18: ApiBlankException
public ApiBlankException(ApiEdit editor)
: base(editor, "The result returned by server was blank")
{
}
开发者ID:reedy,项目名称:AutoWikiBrowser,代码行数:4,代码来源:ApiExceptions.cs
示例19: CaptchaException
public CaptchaException(ApiEdit editor)
: base(editor, "Captcha required")
{
}
开发者ID:reedy,项目名称:AutoWikiBrowser,代码行数:4,代码来源:ApiExceptions.cs
示例20: OperationFailedException
public OperationFailedException(ApiEdit editor, string action, string result, string xml)
: base(editor, "Operation '" + action + "' ended with result '" + result + "'.\r\nXml: '" + xml + "'")
{
Action = action;
Result = result;
Xml = xml;
}
开发者ID:reedy,项目名称:AutoWikiBrowser,代码行数:7,代码来源:ApiExceptions.cs
注:本文中的WikiFunctions.API.ApiEdit类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论