kyy
2025-07-02 07558e32634314eec359ec8437d97bdc5def64f9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
// Copyright © 2020 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
 
//NOTE:Classes in the CefSharp.Core namespace have been hidden from intellisnse so users don't use them directly
 
using System.Collections.Generic;
 
namespace CefSharp
{
    /// <inheritdoc/>
    public class PostData : IPostData
    {
        private CefSharp.Core.PostData postData = new CefSharp.Core.PostData();
 
        /// <inheritdoc/>
        public IList<IPostDataElement> Elements
        {
            get { return postData.Elements; }
        }
 
        /// <inheritdoc/>
        public bool IsReadOnly
        {
            get { return postData.IsReadOnly; }
        }
 
        /// <inheritdoc/>
        public bool IsDisposed
        {
            get { return postData.IsDisposed; }
        }
 
        /// <inheritdoc/>
        public bool HasExcludedElements
        {
            get { return postData.HasExcludedElements; }
        }
 
        /// <inheritdoc/>
        public bool AddElement(IPostDataElement element)
        {
            return postData.AddElement(element);
        }
 
        /// <inheritdoc/>
        public IPostDataElement CreatePostDataElement()
        {
            return new CefSharp.Core.PostDataElement();
        }
 
        /// <inheritdoc/>
        public void Dispose()
        {
            postData.Dispose();
        }
 
        /// <inheritdoc/>
        public bool RemoveElement(IPostDataElement element)
        {
            return postData.RemoveElement(element);
        }
 
        /// <inheritdoc/>
        public void RemoveElements()
        {
            postData.RemoveElements();
        }
 
        /// <summary>
        /// Used internally to get the underlying <see cref="IPostData"/> instance.
        /// Unlikely you'll use this yourself.
        /// </summary>
        /// <returns>the inner most instance</returns>
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
        public IPostData UnWrap()
        {
            return postData;
        }
 
        /// <summary>
        /// Create a new instance of <see cref="IPostData"/>
        /// </summary>
        /// <returns>PostData</returns>
        public static IPostData Create()
        {
            return new CefSharp.Core.PostData();
        }
    }
}