本帖最后由 南方 于 2014-2-15 16:57 编辑
[C#] 纯文本查看 复制代码 /// <summary>
/// 是否禁止重定向
/// </summary>
/// <param name="value">为0 禁止</param>
public void SetRedirect(int value = 0)
{
object obj = _Winhttp.InvokeMember("Option", System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.SetProperty, null, _WinHttpObj, new object[] { 6, 0, null });
obj = _Winhttp.InvokeMember("Option", System.Reflection.BindingFlags.GetProperty, null, _WinHttpObj, new object[] { 6 });
//this.DoMethod("put_Option", new object[] { 6, false });
}
我的是这种方式调用,,,, |