From c91c9f3953aee8ce87ae800edcd910ca276c2da5 Mon Sep 17 00:00:00 2001 From: amaitland Date: Mon, 11 Jan 2016 13:40:42 +1000 Subject: [PATCH] Add IPostData.HasExcludedElements --- CefSharp.Core/Internals/CefPostDataWrapper.h | 10 ++++++++++ CefSharp/IPostData.cs | 8 ++++++++ 2 files changed, 18 insertions(+) diff --git a/CefSharp.Core/Internals/CefPostDataWrapper.h b/CefSharp.Core/Internals/CefPostDataWrapper.h index 507459b59..682487b80 100644 --- a/CefSharp.Core/Internals/CefPostDataWrapper.h +++ b/CefSharp.Core/Internals/CefPostDataWrapper.h @@ -153,6 +153,16 @@ namespace CefSharp return gcnew CefPostDataElementWrapper(element); } + virtual property bool HasExcludedElements + { + bool get() + { + ThrowIfDisposed(); + + return _postData->HasExcludedElements(); + } + } + void ThrowIfReadOnly() { if (IsReadOnly) diff --git a/CefSharp/IPostData.cs b/CefSharp/IPostData.cs index 998b15a03..e607e5e1b 100644 --- a/CefSharp/IPostData.cs +++ b/CefSharp/IPostData.cs @@ -48,5 +48,13 @@ namespace CefSharp /// /// IPostDataElement CreatePostDataElement(); + + /// + /// Returns true if the underlying POST data includes elements that are not + /// represented by this IPostData object (for example, multi-part file upload + /// data). Modifying IPostData objects with excluded elements may result in + /// the request failing. + /// + bool HasExcludedElements { get; } } }