Skip to content

PostData控制类_IFBroSharpPostData

c#
using System;
using System.Collections.Generic;

namespace FBroSharp.Lib;

public interface IFBroSharpPostData : IFBroSharpBase, IDisposable
{
    //
    // 摘要:
    //     是否有效
    bool IsValid { get; }

    //
    // 摘要:
    //     是否只读
    //
    //     Returns true if this object is read-only.
    bool IsReadOnly();

    //
    // 摘要:
    //     是否包含元素
    //
    //     Returns true if the underlying POST data includes elements that are not represented
    //     by this CefPostData object (for example, multi-part file upload data). Modifying
    //     CefPostData objects with excluded elements may result in the request failing.
    bool HasExcludedElements();

    //
    // 摘要:
    //     取元素个数
    //
    //     Returns the number of existing post data elements.
    int GetElementCount();

    //
    // 摘要:
    //     取元素
    //
    //     Retrieve the post data elements.
    List<IFBroSharpPostDataElement> GetElements();

    //
    // 摘要:
    //     移除元素
    //
    //     Remove the specified post data element. Returns true if the removal
    //
    //     succeeds.
    void RemoveElement(IFBroSharpPostDataElement element);

    //
    // 摘要:
    //     增加元素
    //
    //     Add the specified post data element. Returns true if the add succeeds.
    void AddElement(IFBroSharpPostDataElement element);

    //
    // 摘要:
    //     移除所有元素
    //
    //     Remove all existing post data elements.
    void RemoveElements();
}
#if false // 反编译日志
缓存中的 26 
------------------
解析: "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
找到单个程序集: "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
从以下位置加载: "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\mscorlib.dll"
------------------
解析: "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
找到单个程序集: "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
从以下位置加载: "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.dll"
#endif

如果文档对您有帮助,欢迎 请喝咖啡 ☕ | 软件发布 | 源码购买