System.Xml.XmlDictionaryString.XmlDictionaryString C# (CSharp) Méthode

XmlDictionaryString() public méthode

public XmlDictionaryString ( IXmlDictionary dictionary, string value, int key ) : System
dictionary IXmlDictionary
value string
key int
Résultat System
        public XmlDictionaryString(IXmlDictionary dictionary, string value, int key)
        {
            if (dictionary == null)
                throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(dictionary)));
            if (value == null)
                throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(value)));
            if (key < MinKey || key > MaxKey)
                throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(key), SR.Format(SR.ValueMustBeInRange, MinKey, MaxKey)));
            _dictionary = dictionary;
            _value = value;
            _key = key;
        }

Same methods

XmlDictionaryString::XmlDictionaryString ( System dictionary, string value, int key )