我们如何在visual studio中修复whatsregisterv2.requestcode的错误 [英] How we can fix the error of whatsregisterv2.requestcode in visual studio
问题描述
实际上我正试图在visualstudio中使用C#创建一个whtsapp信使....但我错了这个....
if(WhatsAppApi.Register.WhatsRegisterV2.RequestCode(textBoxPhno。文本,输出密码,短信))
它显示我为WhatsAppApi.Register.WhatsRegisterV2.RequestCode的重载方法匹配(输出字符串,输出字符串,字符串,输出字符串)有一些无效的参数。
请帮助我.....
我尝试过的事情:
公共部分课程报名:表格
{
字符串密码;
公共注册()
{
InitializeComponent();
}
private void btnrqst_Click(object sender,EventArgs e)
{
if( string.IsNullOrEmpty(textBoxPhno.Text))
{
MessageBox.Show(请输入您的手机号码,消息,MessageBoxButtons.OK,MessageBoxIcon.Information);
textBoxPhno.Focus();
return;
}
if(string.IsNullOrEmpty(textBoxName.Text))
{
MessageBox.Show(Please输入您的全名,消息,MessageBoxButtons.OK,MessageBoxIcon.Information);
textBoxName.Focus();
return;
}
if(WhatsAppApi.Register.WhatsRegisterV2.RequestCode(textBoxPhno.Text,out password,sms))
{
< br $>
}
}
private void保存()
{
this.grpRequestcode.Enabled = false;
this.cnfrmcde.Enabled = false;
财产ies.Settings.Default.PhoneNumber = textBoxPhno.Text;
Properties.Settings.Default.Password = password;
Properties.Settings.Default.FullName = textBoxName.Text;
Properties.Settings.Default.Save();
}
Actually am trying to create a whtsapp messenger with C# in visualstudio.... But am stuck in error of this....
if(WhatsAppApi.Register.WhatsRegisterV2.RequestCode(textBoxPhno.Text,out password,"sms"))
its showed me as "Overloaded method match for WhatsAppApi.Register.WhatsRegisterV2.RequestCode(out string, out string, string, out string)has some invalid arguments".
kindly pls help me.....
What I have tried:
public partial class Registration : Form
{
string password;
public Registration()
{
InitializeComponent();
}
private void btnrqst_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(textBoxPhno.Text))
{
MessageBox.Show("Please enter your Mobile Number", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
textBoxPhno.Focus();
return;
}
if (string.IsNullOrEmpty(textBoxName.Text))
{
MessageBox.Show("Please enter your Full Name", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
textBoxName.Focus();
return;
}
if(WhatsAppApi.Register.WhatsRegisterV2.RequestCode(textBoxPhno.Text,out password,"sms"))
{
}
}
private void Save()
{
this.grpRequestcode.Enabled = false;
this.cnfrmcde.Enabled = false;
Properties.Settings.Default.PhoneNumber = textBoxPhno.Text;
Properties.Settings.Default.Password = password;
Properties.Settings.Default.FullName = textBoxName.Text;
Properties.Settings.Default.Save();
}
推荐答案
查看错误消息:
Look at the error message:
Overloaded method match for WhatsAppApi.Register.WhatsRegisterV2.RequestCode(out string, out string, string, out string)has some invalid arguments
现在看看你如何调用它:
Now look at how you are calling it:
if(WhatsAppApi.Register.WhatsRegisterV2.RequestCode(textBoxPhno.Text,out password,"sms"))
该方法需要两个 out
字符串参数,一个普通字符串参数,然后是一个 out
字符串参数。
你是重新传递一个字符串,一个输出字符串和一个字符串。
您需要将您的参数与方法签名相匹配。请参阅方法的文档以确定每个参数应包含的内容!
The method expects two out
string parameters, a "normal" string parameter, then a final out
string parameter.
You are passing it a string, an out string, and a string.
You need to match your parameters to the method signature. Consult the documentation for the method to work out what each parameter should contain!
WhatsAppApi.Register.WhatsRegisterV2.RequestCode(来自,输出密码)错误旧版本
请给出解决方案
WhatsAppApi.Register.WhatsRegisterV2.RequestCode(from, out password) error old version
please give a solution
这篇关于我们如何在visual studio中修复whatsregisterv2.requestcode的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!