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

SecurityAttribute() public method

public SecurityAttribute ( string name, string value ) : System.Globalization
name string
value string
return System.Globalization
			public SecurityAttribute (string name, string value) 
			{
				if (!IsValidAttributeName (name))
					throw new ArgumentException (Locale.GetText ("Invalid XML attribute name") + ": " + name);

				if (!IsValidAttributeValue (value))
					throw new ArgumentException (Locale.GetText ("Invalid XML attribute value") + ": " + value);

				_name = name;
				_value = SecurityElement.Unescape (value);
			}
SecurityElement.SecurityAttribute