System.Security.Permissions.SecurityPermission.FromXml C# (CSharp) Method

FromXml() public method

public FromXml ( SecurityElement esd ) : void
esd SecurityElement
return void
        public override void FromXml(SecurityElement esd)
        {
        }

Same methods

SecurityPermission::FromXml ( System esd ) : void

Usage Example

		public void FromXml_WrongVersion ()
		{
			SecurityPermission sp = new SecurityPermission (PermissionState.None);
			SecurityElement se = sp.ToXml ();
			se.Attributes.Remove ("version");
			se.Attributes.Add ("version", "2");
			sp.FromXml (se);
		}
All Usage Examples Of System.Security.Permissions.SecurityPermission::FromXml