Headless.PostEntry.PostEntry C# (CSharp) Method

PostEntry() public method

Initializes a new instance of the PostEntry class.
/// The parameter is null, empty or only contains white-space. ///
public PostEntry ( string name, string value ) : System
name string /// The name. ///
value string /// The value. ///
return System
        public PostEntry(string name, string value)
        {
            if (string.IsNullOrWhiteSpace(name))
            {
                throw new ArgumentException(Resources.Guard_NoValueProvided, "name");
            }

            Name = name;
            Value = value;
        }

Same methods

PostEntry::PostEntry ( string name, System.Guid value ) : System
PostEntry::PostEntry ( string name, int value ) : System
PostEntry::PostEntry ( string name, long value ) : System
PostEntry::PostEntry ( string name, object value ) : System
PostEntry::PostEntry ( string name, short value ) : System
PostEntry