Skip to content

Commit 70121a5

Browse files
committed
Add IPostData.HasExcludedElements
1 parent 9857194 commit 70121a5

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

CefSharp.Core/Internals/CefPostDataWrapper.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,16 @@ namespace CefSharp
153153
return gcnew CefPostDataElementWrapper(element);
154154
}
155155

156+
virtual property bool HasExcludedElements
157+
{
158+
bool get()
159+
{
160+
ThrowIfDisposed();
161+
162+
return _postData->HasExcludedElements();
163+
}
164+
}
165+
156166
void ThrowIfReadOnly()
157167
{
158168
if (IsReadOnly)

CefSharp/IPostData.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,13 @@ public interface IPostData : IDisposable
4848
/// </summary>
4949
/// <returns></returns>
5050
IPostDataElement CreatePostDataElement();
51+
52+
/// <summary>
53+
/// Returns true if the underlying POST data includes elements that are not
54+
/// represented by this IPostData object (for example, multi-part file upload
55+
/// data). Modifying IPostData objects with excluded elements may result in
56+
/// the request failing.
57+
/// </summary>
58+
bool HasExcludedElements { get; }
5159
}
5260
}

0 commit comments

Comments
 (0)