// 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
namespace CefSharp
{
///
/// Class used to represent a single element in the request post data.
/// The methods of this class may be called on any thread.
///
public class PostDataElement : IPostDataElement
{
internal CefSharp.Core.PostDataElement postDataElement = new CefSharp.Core.PostDataElement();
///
public string File
{
get { return postDataElement.File; }
set { postDataElement.File = value; }
}
///
public bool IsReadOnly
{
get { return postDataElement.IsReadOnly; }
}
///
public PostDataElementType Type
{
get { return postDataElement.Type; }
}
///
public byte[] Bytes
{
get { return postDataElement.Bytes; }
set { postDataElement.Bytes = value; }
}
///
public void Dispose()
{
postDataElement.Dispose();
}
///
public void SetToEmpty()
{
postDataElement.SetToEmpty();
}
///
/// Used internally to get the underlying instance.
/// Unlikely you'll use this yourself.
///
/// the inner most instance
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public IPostDataElement UnWrap()
{
return postDataElement;
}
///
/// Create a new instance of
///
/// PostDataElement
public static IPostDataElement Create()
{
return new CefSharp.Core.PostDataElement();
}
}
}