System.Security.SecurityElement.SecurityElement C# (CSharp) Method

SecurityElement() public method

public SecurityElement ( string tag, string text ) : System.Collections
tag string
text string
return System.Collections
        public SecurityElement(string tag, string text)
        {
            if (tag == null)
                throw new ArgumentNullException(nameof(tag));

            if (!IsValidTag(tag))
                throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, SR.Argument_InvalidElementTag, tag));

            if (text != null && !IsValidText(text))
                throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, SR.Argument_InvalidElementText, text));

            _tag = tag;
            _text = text;
        }

Same methods

SecurityElement::SecurityElement ( ) : System.Collections
SecurityElement::SecurityElement ( string tag ) : System.Collections